/*--------------------------------------------------------------------------------------------------------------------------*/
/* General Styling */
/*--------------------------------------------------------------------------------------------------------------------------*/
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:wght@400;700&display=swap');

html {
	scroll-behavior: smooth;
}


:root {
	--background: #CFC4B1;
	--text-colour: #676127;
	--text-hover: #141414;
	--base-font-size: 1.6rem;
	--subtitle-font-size: 2rem;
	--title-font-size: 2.8rem;
	--button-font-size: 1.2rem;
	--font: 'Cormorant Garamond', serif;
	--font2: 'Libre Baskerville', serif;
	--arch-font-size: 2rem;
}

@media (max-width: 1200px) {
	:root {
		--base-font-size: 1.4rem;
		--subtitle-font-size: 1.8rem;
		--title-font-size: 2.4rem;
		--button-font-size: 1rem;
	}
}
@media (max-width: 900px) {
	:root {
		--base-font-size: 1.2rem;
		--subtitle-font-size: 1.5rem;
		--title-font-size: 1.9rem;
		--button-font-size: 0.8rem;
	}
}
@media (max-width: 600px) {
	:root {
		--base-font-size: 1rem;
		--subtitle-font-size: 1.3rem;
		--title-font-size: 1.5rem;
		--button-font-size: 0.8rem;
	}
}

@media (prefers-color-scheme: dark) {
	:root {
		--background: #141414;
		--text-colour: #676137;
		--text-hover: #CFC4B1;
	}
}


body {
	font-family: var(--font);
	background-color: var(--background);
	color: var(--text-colour);
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	font-size: var(--base-font-size); /* Use the base font size */
}

p {
	font-size: var(--base-font-size); /* Slightly larger paragraph text */
	font-weight: bold;
	margin-bottom: 1em;
}

body, h1, h2, h3, h4, h5, h6, p, li, td, th {
	line-height: 1.5; /* Scales with font-size */
}

.side-image {
	width: 100%;
	height: auto;
	max-width: 1000px;
	margin: 0 auto;
	display: block;
	border-radius: 30px;
}


/*--------------------------------------------------------------------------------------------------------------------------*/
/* Header */
/*--------------------------------------------------------------------------------------------------------------------------*/

/* Header layout: center logo between language selector and nav */
header.newspaper-header {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1.2rem;
	position: relative;
	padding: 1rem 2rem;
	height: 120px;
	border-bottom: 2px solid var(--text-colour);
	background-color: var(--background);
	color: var(--text-colour);
	box-sizing: border-box;
	font-family: var(--font);
}

/* Make side elements flexible so logo stays centered */
.language-selector {
	flex: 1 1 0;
	display: flex;
	gap: 0.5rem;
	flex-wrap: nowrap;
	border-radius: 0;
}

.logo-hitbox {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 150px;
	height: 70px;
	cursor: pointer;
	background: transparent;
	border-radius: 12px;
	transition: background 0.2s;
}
.logo-hitbox:hover {
	background: rgba(0,0,0,0.04);
}

.newspaper-header .logo {
	width: 140px;
	height: auto;
	margin: 0;
	display: block;
	position: static;
	left: auto;
	top: auto;
	transform: none;
}

.newspaper-header nav {
	flex: 1 1 0;
	display: flex;
	align-items: center;
	justify-content: flex-end;
}

.newspaper-header nav a {
	font-size: var(--base-font-size);
	text-decoration: none;
	color: var(--text-colour);
	padding: 0.85rem 1.6rem;
	border: 2px solid var(--text-colour);
	border-radius: 4px;
	background-color: transparent;
	transition: background-color 0.3s, color 0.3s;
	cursor: pointer;
}

.newspaper-header nav a:hover {
	background-color: var(--text-colour);
	color: var(--background);
}

.newspaper-header nav .booking-link {
	background-color: var(--background);
	color: var(--text-colour);
	font-size: 1.2rem;
	padding: 0.6rem 1rem;
	text-decoration: none;
	border: 2px solid var(--text-colour);
	border-radius: 3px;
	transition: background-color 0.3s, color 0.3s;
	cursor: pointer;
}

.header-menu {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: var(--background);
	display: none;
	flex-direction: column;
	justify-content: space-between;
	align-items: center;
	padding: 2rem;
	z-index: 1000;
}

.header-menu.open {
	display: flex;
}



@media (max-width: 600px) {
	html {
		font-size: 1rem; /* Reduce base font size for mobile */
	}
	body {
		font-size: 1rem;
	}
	h1, h2 {
		font-size: 2rem;
	}

	.language-selector {
		display: grid;
		grid-template-columns: repeat(2, auto);
		gap: 0.5rem;
	}
	.language-link {
		font-size: 1rem;
		padding: 0.18rem 0.5rem;
	}
	.booking-button {
		font-size: var(--button-font-size);
		padding: 0.5rem 1rem;
	}
	.newspaper-header .logo {
		width: 7.5rem; /* 120px = 7.5rem */
	}
}

/* Language selector styles */
.language-selector {
	display: flex;
	gap: 0.5rem;
	flex-wrap: nowrap;
	border-radius: 0;
}

.language-link:not(:first-child):not(:last-child) {
	border-radius: 0;
}

.language-link:first-child {
	border-top-right-radius: 0px;
	border-bottom-right-radius: 0px;
	border-top-left-radius: 15px;
}

.language-link:last-child {
	border-top-left-radius: 0px;
	border-bottom-left-radius: 0px;
	border-bottom-right-radius: 15px;
}

.language-link {
	font-size: 1.2rem;
	padding: 0.22rem 0.55rem;
	border-radius: 3px;
	border: 2px solid var(--text-colour);
	background-color: transparent;
	transition: background-color 0.3s, color 0.3s;
	cursor: pointer;
	text-decoration: none;
	color: var(--text-colour);
}

.language-link[data-selected="true"] {
	background-color: var(--text-colour);
	color: var(--background);
}

.language-link:hover {
	background-color: var(--text-colour);
	color: var(--background);
}

/* Responsive grid for language selector on small screens */
@media (max-width: 600px) {
	.language-selector {
		display: grid;
		grid-template-columns: repeat(2, auto);
		gap: 0.5rem;
	}
	.language-link {
		font-size: 1rem;
		padding: 0.18rem 0.5rem;
	}
}


/*--------------------------------------------------------------------------------------------------------------------------*/
/* Main Content Styling */
/*--------------------------------------------------------------------------------------------------------------------------*/

main {
	flex: 1;
	width: 100%;
	box-sizing: border-box;
}

h1, h2 {
	font-family: 'Cormorant Garamond', serif;
	color: var(--text-colour);
	margin: 0 auto 1rem auto;
	padding: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	font-size: var(--title-font-size);
}

ul {
	list-style-type: none;
	margin: 0 auto 1rem auto;
	padding: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	font-size:var(--base-font-size);
}

.content-container {
	display: flex;
	align-items: center;
	margin-top: 1rem;
	padding-bottom: 1rem;
	border-bottom: var(--text-colour) 1px solid;
	width: 100vw;
	max-width: 100vw;
	box-sizing: border-box;
	margin-left: 0;
	margin-right: 0;
	padding-left: 0;
	padding-right: 0;
	overflow-x: hidden;
}

.side-image {
	width: 50%;
	margin: 2rem;
	margin-bottom: 0;
}

.text-sections {
	width: 50%;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

/*--------------------------------------------------------------------------------------------------------------------------*/
/* Section Styling */
/*--------------------------------------------------------------------------------------------------------------------------*/

.section-quotes,
.section-intro,
.section-feelings,
.section-symbols,
.section-dive-deeper,
.section-about {
	width: 100%;
	padding: 2rem;
	box-sizing: border-box;
	position: relative;
}


/*--------------------------------------------------------------------------------------------------------------------------*/
/* Intro */
/*--------------------------------------------------------------------------------------------------------------------------*/

.section-quotes,
.section-intro {
	width: 100%;
	padding: 1rem 0; /* Reduce padding to decrease space between sections */
	box-sizing: border-box;
	position: relative;
}

.section-quotes {
	background-color: var(--background);
}

.quote-text {
	text-align: center;
	display: block;
	font-family: var(--font2);
	font-style: italic;
	font-size: var(--base-font-size);
}

.quote-author {
	font-size: 1rem;
	font-family: var(--font2);
	font-style: italic;
	text-align: right;
	margin: 0.5rem auto 0 auto;
	display: block;
}

.section-intro {
	background-color: var(--background);
}

.intro-text {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	text-align: center;
}

.fi {
	font-size: 1.2rem;
	margin-right: 0.5rem;
	vertical-align: middle;
	opacity: 0.5;
}

.banner-container {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin-top: 1rem;
	padding-bottom: 1rem;
	border-bottom: var(--text-colour) 1px solid;
}

.banner-image {
	width: 100%;
	max-height: 450px;
	object-fit: cover;
	display: block;
	margin-bottom: 1.5rem;
	border-radius: 0.5rem;
}

.banner-container .text-sections {
	width: 80%;
	padding: 0 2rem;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}

/*--------------------------------------------------------------------------------------------------------------------------*/
/* Feelings */
/*--------------------------------------------------------------------------------------------------------------------------*/

.section-feelings {
	position: relative;
	color: var(--background);
	padding: 2rem 0;
	text-align: center;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}

.section-feelings .feeling {
	margin: 1rem 0;
	padding-bottom: 1rem;
	border-bottom: 1px solid var(--text-colour);
	width: 100%;
}

.section-feelings p {
	font-size: var(--base-font-size);
	color: var(--text-colour);
	position: relative;
	font-weight: bold;
	margin-bottom: 1rem;
}

.section-feelings h2 {
	font-size: 2em;
}

/*--------------------------------------------------------------------------------------------------------------------------*/
/* Feelings + Dive deeper */
/*--------------------------------------------------------------------------------------------------------------------------*/

.section-feelings,
.dive-deeper {
	flex: 1;
	padding: 10px;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center; /* Center-align text */
}

.section-feelings h2,
.dive-deeper h2 {
	font-size: var(--title-font-size);
	text-align: center;
	margin-bottom: 1rem;
	word-wrap: break-word;
	white-space: normal;
	max-width: 80%;
	line-height: 1.4;
}

.section-feelings h3,
.dive-deeper h3 {
	font-size: var(--subtitle-font-size);
	align-items: center;
}


.dive-deeper h3 {
	margin-bottom: 1rem;
}
.dive-deeper h3 + p {
	margin-top: 0.2rem;
	margin-bottom: 0.6rem;
}
.dive-deeper h3 + p,
.dive-deeper h3 {
	margin-bottom: 0.2rem;
}

/*--------------------------------------------------------------------------------------------------------------------------*/
/* Dive deeper */
/*--------------------------------------------------------------------------------------------------------------------------*/
.dive-deeper {
	background-color: var(--background);
	padding: 2rem 0;
	text-align: center; /* Center the text */
	display: flex;
	flex-direction: column;
	align-items: center; /* Center the section horizontally */
	line-height: 0.5; /* Reduce the space between lines */
}

.booking-button {
	font-family: 'Cormorant Garamond', serif;
	color: var(--text-colour);
	text-decoration: none;
	font-size: 1.4rem; /* Reduce font size */
	padding: 0.6rem 1.2rem; /* Adjust padding for smaller size */
	border: 2px solid var(--text-colour);
	border-radius: 3px; /* Slightly smaller border radius */
	background-color: transparent;
	transition: background-color 0.3s, color 0.3s;
	cursor: pointer;
	margin-top: 1rem;
	display: inline-block;
	position: relative;
	z-index: 1;
	text-align: center;
}

.booking-button:hover {
	background-color: var(--text-colour);
	color: var(--background);
}

/*--------------------------------------------------------------------------------------------------------------------------*/
/* Programs */
/*--------------------------------------------------------------------------------------------------------------------------*/

.section-programs {
	background-color: var(--background);
	padding: 4rem 2rem;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 100%;
}
.arch-header {
	position: relative;
	width: 100%;
	height: 200px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	margin-top: 0;
	font-size: 1em;
}
.arch-svg {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 200px;
	z-index: 1;
}
.arch-content {
	background-color: var(--text-colour);
	color: var(--background);
	border-radius: 0 0 8px 8px;
	padding: 1rem;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
	margin-top: 0;
	flex-grow: 1;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	text-align: center;
	font-size: 0.9em;
}
.arch-text {
	position: absolute;
	top: 75%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 60%;
	text-align: center;
	font-size: 1em;
	z-index: 2;
	pointer-events: none;
	color: var(--background);
	background: transparent;
}

.arch-content ul,
.arch-content li {
	font-size: inherit;
}

.program-arches {
	display: flex;
	flex-direction: row;
	justify-content: center;
	align-items: stretch;
	gap: 3rem;
	width: 100%;
	max-width: none;
	margin: 0 auto;
}

@media (max-width: 1000px) {
	.program-arches {
		flex-direction: column;
		align-items: center;
		gap: 2rem;
	}
	.program-arch {
		width: 90%;
		margin: 1rem 0;
	}
}

@media (max-width: 600px) {
	.arch-text {
		font-size: 1.5em;
	}
	.arch-content {
		font-size: 1.2em;
	}
}

/*--------------------------------------------------------------------------------------------------------------------------*/
/* Symbols */
/*--------------------------------------------------------------------------------------------------------------------------*/

.section-symbols {
	background-color: var(--background);
	padding: 2rem 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 1.5rem;
}

.section-symbols h2 {
	margin-top: 1rem;
	margin-bottom: 1rem;
	line-height: 2.7rem;
}

.symbol-container {
	width: calc(33.33% - 1rem);
	text-align: center;
	padding: 1rem;
	box-sizing: border-box;
}

.symbol-container:nth-child(4) {
	width: calc(50% - 1rem);
	border: none;
}

.symbol-icon {
	width: auto;
	height: 100px;
	margin: 0 auto;
	display: block;
}

@media (max-width: 1000px) {
	.symbol-container {
		width: calc(50% - 1rem);
	}

	.symbol-container:nth-child(4) {
		width: calc(50% - 1rem);
	}
}

@media (max-width: 600px) {
	.symbol-container {
		width: 100%;
	}

	.symbol-container:nth-child(4) {
		width: 100%;
	}
}

/*--------------------------------------------------------------------------------------------------------------------------*/
/* About */
/*--------------------------------------------------------------------------------------------------------------------------*/


.section-about {
	background-color: var(--background);
	padding: 2rem 0;
	text-align: center;
	display: flex;
	flex-direction: row;
	align-items: stretch;
	justify-content: center;
	gap: 2rem;
	width: 100vw;
	max-width: 100vw;
	box-sizing: border-box;
	padding-left: 2vw;
	padding-right: 2vw;
	overflow-x: hidden;
}
.section-about h3 {
	font-size: var(--subtitle-font-size);
	font-family: 'italic', serif;
	margin: 0 auto 1rem auto;
}

.text-section {
	flex: 1 1 50%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	text-align: left;
}

.about-image-wrapper {
	flex: 1 1 50%;
	display: flex;
	align-items: stretch;
	width: 100%;
	max-width: none;
	/* Ensures the image fills the wrapper's height */
}

.section-about .side-image {
	width: 100%;
	height: 70%;
	max-width: 600px; /* Prevents image from getting too wide */

	object-fit: cover;
	object-position: center;
	border-radius: 20px;
	margin: 20% auto 0 auto; /* Centers image vertically */
	display: block;
}

/* Responsive: stack image above text on small screens */
@media (max-width: 1200px) {
	.section-about {
		flex-direction: column;
		align-items: center;
		gap: 1rem;
	}
	.about-image-wrapper {
		max-width: 100%;
		width: 100%;
		margin-bottom: 1rem;
		order: -1;
		height: auto;
	}
	.section-about .side-image {
		width: 100vw;
		max-width: 100vw;
		height: 350px;
		object-fit: cover;
		margin: 0 auto;
		object-position: center 15%;
		display: block;
	}
}

/*--------------------------------------------------------------------------------------------------------------------------*/
/* FAQ */
/*--------------------------------------------------------------------------------------------------------------------------*/

.section-FAQ {
	padding: 2rem;
	margin: 2rem 0;
}

.section-FAQ h2 {
	font-size: var(--title-font-size);
	text-align: center;
	margin-bottom: 1.5rem;
	word-wrap: break-word;
	white-space: normal;
	max-width: 80%;
	line-height: 1.4;
}

.faq-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	cursor: pointer;
	border-bottom: 1px solid var(--text-colour);
}

.faq-item {
	margin-bottom: 1.5rem;
}


.faq-arrow {
	color: var(--text-colour); /* Always matches text color */
	transition: color 0.2s, transform 0.3s;
	vertical-align: middle;
	transform: rotate(90deg);

}
.faq-arrow.open {
	transform: rotate(180deg); /* Or your desired rotation */
}
.faq-arrow:hover {
	color: var(--text-hover); /* Optional: color on hover */
}

.faq-question {
	font-size: var(--subtitle-font-size);
	font-weight: bold;
	color: var(--text-colour);
	margin: 0;
	padding: 0.5rem 0;
	transition: color 0.3s;
}

.faq-header:hover .faq-arrow,
.faq-header:hover .faq-question {
	color: var(--text-hover);
}

.faq-answer {
	font-size: var(--base-font-size);
	line-height: 1.8;
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease-out;
	color: var(--text-colour);
	margin: 0;
	padding: 0 0.5rem;
}

.faq-answer.open {
	max-height: 500px;
}

/* FAQ image banner style */
.section-FAQ + .side-image,
img.side-image[alt*="FAW"] {
	width: 100%;
	max-width: 100vw;
	height: 250px;
	object-fit: cover;
	object-position: center;
	display: block;
	margin: 0 auto 2rem auto;
	border-radius: 5px;
}

/*--------------------------------------------------------------------------------------------------------------------------*/
/* Footer Styling */
/*--------------------------------------------------------------------------------------------------------------------------*/

footer {
	font-size: var(--subtitle-font-size);
	text-align: center;
	padding: 1rem;
	background-color: var(--text-colour);
	color: var(--background);
	width: 100%;
	box-sizing: border-box;
	position: relative;
}

.footer-link {
	text-decoration: none;
}

footer .footer-link img {
	width: 80px;
	object-fit: contain;
	margin: 1rem;
	display: inline-block;
	vertical-align: middle;

}

.footer-bug-report-btn {
	margin-top: 1rem;
	padding: 0.5rem 1.2rem;
	font-size: 1rem;
	border-radius: 4px;
	border: none;
	background: var(--background);
	color: var(--text-colour);
	cursor: pointer;
	transition: background 0.2s, color 0.2s;
}
.footer-bug-report-btn:hover {
	background: var(--text-colour);
	color: var(--background);
	border: 2px solid var(--background);
}

.bug-report-modal {
	display: none;
	position: fixed;
	z-index: 2000;
	left: 0;
	top: 0;
	width: 100vw;
	height: 100vh;
	background: rgba(0,0,0,0.3);
	justify-content: center;
	align-items: center;
}
.bug-report-modal[style*="display: block"] {
	display: flex !important;
}

.bug-report-modal-content {
	background: var(--background);
	color: var(--text-colour);
	margin: 0;
	padding: 2rem 1.5rem 1.5rem 1.5rem;
	border-radius: 12px;
	width: 95%;
	max-width: 400px;
	box-shadow: 0 4px 24px rgba(0,0,0,0.18);
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.bug-report-modal-close {
	position: absolute;
	top: 10px; /* Adjust as needed */
	right: 15px; /* Adjust as needed */
	font-size: 1.5rem;
	font-weight: bold;
	color: var(--text-colour);
	cursor: pointer;
	background: none;
	border: none;
	outline: none;
}
.bug-report-modal-close:hover {
	color: var(--text-hover);
}

.footer-bug-report-form {
	display: flex;
	flex-direction: column;
	align-items: center; /* Center the form's children horizontally */
	margin-top: 0;
	width: 100%;
}

.footer-bug-report-form label {
	color: var(--text-colour);
	margin-bottom: 0.5rem;
	align-self: center; /* Center the label */
}

.footer-bug-report-form textarea {
	width: 100%;
	max-width: 100%;
	min-height: 60px;
	resize: vertical;
	border-radius: 6px;
	border: 1.5px solid var(--text-colour);
	padding: 0.5rem;
	font-size: 1rem;
	margin-bottom: 0.5rem;
	background: var(--background);
	color: var(--text-colour);
	display: block;
}

.footer-bug-report-form button {
	font-size: var(--button-font-size);
	padding: 0.4rem 1.2rem;
	border-radius: 4px;
	border: 2px solid var(--text-colour);
	background: var(--background);
	color: var(--text-colour);
	cursor: pointer;
	transition: background 0.2s, color 0.2s;
	margin-top: 0.2rem;
	align-self: center; /* Center the button */
}

/* Center modal content using flex */
.bug-report-modal {
	display: none;
	position: fixed;
	z-index: 2000;
	left: 0;
	top: 0;
	width: 100vw;
	height: 100vh;
	background: rgba(0,0,0,0.3);
	justify-content: center;
	align-items: center;
}
.bug-report-modal[style*="display: block"] {
	display: flex !important;
}


/*--------------------------------------------------------------------------------------------------------------------------*/
/* Responsive Design for Content Containers */
/*--------------------------------------------------------------------------------------------------------------------------*/
@media (max-width: 1000px) {
	.content-container {
		flex-direction: column;
		align-items: center;
	}

}
