/*
Theme Name: Beit El Arabi
Theme URI: 
Author: Yoland Khalaf
Description: Custom theme for the Beit El Arabi digital archive
Version: 1.0
*/

/* ===== Volume TC (Header Font) ===== */
@font-face {
	font-family: "VolumeTCSansRegular";
	src: url('webFonts/VolumeTCSansRegular/font.woff2') format('woff2'),
	     url('webFonts/VolumeTCSansRegular/font.woff') format('woff');
	font-weight: normal;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "VolumeTCRegular";
	src: url('webFonts/VolumeTCRegular/font.woff2') format('woff2'),
	     url('webFonts/VolumeTCRegular/font.woff') format('woff');
	font-weight: normal;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "VolumeTCItalic";
	src: url('webFonts/VolumeTCItalic/font.woff2') format('woff2'),
	     url('webFonts/VolumeTCItalic/font.woff') format('woff');
	font-weight: normal;
	font-style: normal;
	font-display: swap;
}

/* ===== AFACAD (Variable Font) ===== */
@font-face {
	font-family: "Afacad";
	src: url('webFonts/Afacad/Afacad-VariableFont_wght.woff2') format('woff2-variations');
	font-weight: 400 700;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Afacad";
	src: url('webFonts/Afacad/Afacad-Italic-VariableFont_wght.woff2') format('woff2-variations');
	font-weight: 400 700;
	font-style: italic;
	font-display: swap;
}

/* ===== TAJAWAL (Static Weights) ===== */
@font-face {
	font-family: "Tajawal";
	src: url('webFonts/Tajawal/Tajawal-ExtraLight.woff2') format('woff2');
	font-weight: 200;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Tajawal";
	src: url('webFonts/Tajawal/Tajawal-Light.woff2') format('woff2');
	font-weight: 300;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Tajawal";
	src: url('webFonts/Tajawal/Tajawal-Regular.woff2') format('woff2');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Tajawal";
	src: url('webFonts/Tajawal/Tajawal-Medium.woff2') format('woff2');
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Tajawal";
	src: url('webFonts/Tajawal/Tajawal-Bold.woff2') format('woff2');
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Tajawal";
	src: url('webFonts/Tajawal/Tajawal-ExtraBold.woff2') format('woff2');
	font-weight: 800;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Tajawal";
	src: url('webFonts/Tajawal/Tajawal-Black.woff2') format('woff2');
	font-weight: 900;
	font-style: normal;
	font-display: swap;
}



/* Meyer Reset */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}

/*=========== CSS VARIABLES ===========*/
:root {
	--color-background: #DBD3C2;
	--color-heading: #4D7470;
	--color-olive: #565e44;
	--color-nav-text: #515151;
	--color-burgundy: #6B2E20;
	--color-orange: #b15f2c;
	--color-grey: #333;
	--color-input-bg: #dad4c9;
	--color-hover: #7f886e;

	--font-nav: "Afacad", Helvetica, Arial, sans-serif;
	--font-arabic: "Tajawal", "Segoe UI", Tahoma, sans-serif;
	--font-volume-bold: "VolumeTCSansRegular", Georgia, "Times New Roman", serif;
	--font-volume-reg: "VolumeTCRegular", Georgia, "Times New Roman", serif;
	--font-volume-italic: "VolumeTCItalic", Georgia, "Times New Roman", serif;
}
	[data-theme="dark"] {
	--color-background: #1F1B16;
	--color-heading: #8FBDB8;
	--color-olive: #A8B58F;
	--color-nav-text: #A8A29B;
	--color-burgundy: #D9825C;
	--color-orange: #E0965F;
	--color-grey: #d4cec0;
	--color-input-bg: #2A251E;
}

body {
	background-color: var(--color-background);
	font-family: var(--font-nav);
}

h1 {
	font-family: var(--font-volume-bold);
	color: var(--color-heading);
	font-size: 2.5rem;
	font-weight: normal;
	margin-bottom: 1rem;
	margin-left: 6rem;
	margin-top: 2rem;
}

h2 {
	font-family: var(--font-volume-reg);
	color: var(--color-burgundy);
	font-size: 1.4rem;
	font-weight: normal;
	text-align: center;
	margin-top: 1rem;
	margin-bottom: 2rem;
	margin-left: 0;
}

p {
	font-family: var(--font-nav);
	color: var(--color-grey);
	font-size: 1.3rem;
	line-height: 1.6;
	margin-bottom: 3rem;
	margin-left: 6rem;
	margin-right: 6rem;
}

em {
	font-style: italic;
	color: var(--color-nav-text);
	font-family: var(--font-volume-italic);
}

a {
	text-decoration: none;
	color: var(--color-burgundy);
}

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

strong {
	font-weight: 700;
}

::selection {
  background-color: var(--color-orange);
  color: var(--color-background);
}

/*=========== HEADER & NAVIGATION ===========*/
.site-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 2rem 2rem;
    margin-left: 2rem;
    margin-right: 2rem;
}

.site-title {
	font-family: var(--font-volume-reg);
	color: var(--color-burgundy);
	text-decoration: none;
	font-size: 2rem;
    font-weight: normal;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}


.primary-menu ul {
	display: flex;
	gap: 1.6rem;
    font-size: 1.3rem;
	align-items: center;
	margin: 0;
	padding: 0;
}

.primary-menu a {
	font-family: var(--font-nav);
	color: var(--color-nav-text);
	text-decoration: none;
}

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

.primary-menu {
	display: flex;
	align-items: center;
	gap: 20px;
}

.primary-menu .active a {
	color: var(--color-orange);
	font-weight: bold;
}

.theme-toggle {
	background: none;
	border: none;
	padding: 0;
	margin: 0;
	color: var(--color-nav-text);
	font-size: 1.3rem;
	line-height: 1;
	cursor: pointer;
}

.theme-toggle-icon {
	width: 24px;
	height: 24px;
}

.theme-toggle:hover {
	color: var(--color-hover);
}

.theme-icon-sun {
	display: none;
}

[data-theme="dark"] .theme-icon-moon {
	display: none;
}

[data-theme="dark"] .theme-icon-sun {
	display: block;
}

.menu-toggle {
	display: none;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-orange, #000);
    color: #fff;
    padding: 8px 16px;
    z-index: 100;
    text-decoration: none;
}

.skip-link:focus {
    top: 0;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/*=========== SINGLE PAGE ===========*/
.beit-single {
	max-width: 100%;
	width: 100%;
	margin: 0;
	padding: 2rem 4rem;
	box-sizing: border-box;
}

.beit-title {
	font-family: var(--font-volume-reg);
	color: var(--color-heading);
	font-size: 2.8rem;
	font-weight: normal;
	margin-bottom: 0.5rem;
	margin-top: 0rem;
	margin-left: 0rem;
}

.beit-subtitle {
	font-family: var(--font-nav);
	color: var(--color-nav-text);
	font-size: 1.3rem;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: 2rem;
	margin-left: 0rem;
}

.beit-subtitle .dot {
	color: var(--color-orange); 
}

.home-content h1 {
	font-size: 2.5rem;
	text-align: center;
	margin-top: 1rem;
	margin-left: 0rem;
}

/*=========== DOORS GRID ===========*/
.doors-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2rem;
	max-width: 900px;
	margin: 0 auto 4rem;
}

.door-item img {
	width: 100%;
	height: auto;
	display: block;
}

.door-name {
	font-family: var(--font-volume-bold);
	color: var(--color-olive);
	font-size: 1.3rem;
	text-align: center;
	margin: 0.8rem 0 0 0;
}


.door-item a:hover .door-name {
	color: var(--color-hover);
}


.door-item a:hover img {
	transition: transform 0.15s ease;
	transform: rotate(1deg) scale(.99);
	box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
}

/*=========== TIMELINE PAGE ===========*/
.timeline-track {
	width: 100%;
	display: grid;
	grid-template-columns: repeat(9, 1fr);
	position: relative;
	margin: 4rem 0 5rem;
}

.timeline-track::before {
	content: '';
	position: absolute;
	top: 4px;
	left: 0;
	right: 0;
	height: 1px;
	background-color: var(--color-nav-text);
}

.timeline-point {
	display: flex;
	flex-direction: column;
	align-items: center;
	cursor: pointer;
	
}

.timeline-point:first-child {
	align-items: flex-start;
}

.timeline-point:last-child {
	align-items: flex-end;
}

.timeline-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background-color: var(--color-nav-text);
}

.timeline-year {
	font-family: var(--font-nav);
	color: var(--color-nav-text);
	font-size: 0.9rem;
	margin-top: 0.75rem;
}

.timeline-point:hover .timeline-year {
	font-weight: 600;
	font-size: 1rem;
	color: var(--color-olive);
}

.timeline-point.active .timeline-dot {
	background-color: var(--color-orange);
	transform: scale(2);
	font-size: 1.2rem;
	transition: transform 0.3s ease, background-color 0.3s ease;
}

.timeline-point.active .timeline-year {
	color: var(--color-orange);
	font-weight: 600;
	font-size: 1.1rem;
	transition: color 0.2s ease, font-size 0.2s ease;
}

/*=========== TIMELINE EVENT CARDS ===========*/
.timeline-events-scroll {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	gap: 3rem;
}

.timeline-event {
	display: flex;
	align-items: center;
	gap: 6rem;
	flex: 0 0 100%;
	scroll-snap-align: start;
	padding-bottom: 2rem;
}

.timeline-event-image {
	position: relative;
	width: 480px;
	height: 480px;
	flex-shrink: 0;
	padding-left: 4rem;
}

.timeline-event-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	background-color: var(--color-input-bg);
	border-radius: 50%;
	display: block;
	border: 1px solid rgba(0, 0, 0, 0.1);

}

.timeline-event-text > h2 {
	font-family: var(--font-nav);
	font-size: 4.8rem;
	text-align: left;
	font-weight: 700;
	margin-bottom: 1rem;
	color: var(--color-orange);
}


.timeline-event-text h3 {
	font-family: var(--font-volume-reg);
	color: var(--color-burgundy);
	font-size: 2rem;
	margin-bottom: 1rem;
	margin-top: 1rem;
}

.timeline-event-text p {
	font-family: var(--font-nav);
	color: var(--color-nav-text);
	font-size: 1.5rem;
	line-height: 1.5;
	max-width: 700px;
	margin-left: 0rem;
}

.next-home-nav {
    display: flex;
    align-items: center;
    gap: 0.75rem;
	padding-right: 1rem;
    border-right: 1.2px solid var(--color-olive);
	width: fit-content; 
	margin-left: auto;
}

.next-home-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.next-home-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.next-home-label {
    font-size: .9rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-olive);
    margin-bottom: 0.15rem;
}

.next-home-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.next-home-title {
    text-decoration: none;
    font-size: 1.2rem;
	font-weight: 600;
    color: var(--color-grey);
}

.next-home-nav:hover .next-home-icon {
	transform: rotate(45deg);
}


/*=========== GLOSSARY ===========*/

.glossary-page {
	padding-left: 4.2rem;
	padding-top: 2rem;
	margin-left: 0rem;
}

.glossary-page h1 {
	margin-left: 0rem;
	margin-top: 0rem;
}

.glossary-page p {
	margin-left: 0rem;
	margin-right: 2rem;
}

.glossary-category {
	margin-bottom: 2rem;
}

.glossary-category summary {
	width: 100%;
	list-style: none;
	display: flex;
	align-items: center;
	font-family: var(--font-volume-bold);
	color: var(--color-orange);
	font-size: 1.8rem;
	font-weight: normal;
	margin-bottom: 1.5rem;
	margin-top: 1.5rem;
}

.glossary-category summary::-webkit-details-marker {
	display: none;
}

.glossary-category summary::marker {
	content: none;
}

.glossary-category summary .arrow-icon {
	width: 28px;
	height: 28px;
	flex-shrink: 0;
	margin-right: 0.75rem;
	transition: transform 0.3s ease;
}

.glossary-category[open] summary .arrow-icon {
	transform: rotate(60deg);
}

.glossary-category summary:hover .arrow-icon {
	transform: rotate(45deg);
}

.glossary-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	column-gap: 0;
	row-gap: 2rem;
	margin-right: 5rem;
}

.glossary-term {
	display: grid;
	grid-template-columns: auto 1fr;
	column-gap: 1.5rem;
	align-content: center;
	margin-left: 2.7rem;
}

.glossary-term img {
	grid-column: 1;
	grid-row: 1 / span 2;
	width: 100%;
	max-width: 240px;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: 50%;
}

.glossary-text {
	grid-column: 2;
	padding-top: 2rem;
}

.glossary-term h3 {
	font-family: var(--font-volume-bold);
	color: var(--color-burgundy);
	font-size: 1.3rem;
	margin-bottom: 0.4rem;
}

.glossary-arabic {
	font-family: var(--font-arabic);
	font-weight: normal;
	color: var(--color-nav-text);
	font-size: 1.3rem;
}

.glossary-term p {
	font-family: var(--font-nav);
	color: var(--color-grey);
	font-size: 1.2rem;
	line-height: 1.5;
	margin-right: 0;
}

/*=========== TEXT PAGES ===========*/


.text-pages {
	max-width: 1300px;
	margin: 0 auto;
	padding: 2rem 2rem;
}

/*=========== CONTACT PAGE ===========*/

.contact-page {
	max-width: 700px;
	margin: 0 auto;
	padding: 3rem 2rem;
}

.contact-form {
	display: flex;
	flex-direction: column;
	gap: 1.6rem;
	margin-top: 2rem;
}

.contact-form input,
.contact-form textarea {
	font-family: var(--font-nav);
	font-size: 1.2rem;
	color: var(--color-grey);
	background-color: var(--color-input-bg);
	border: 1px solid var(--color-nav-text);
	border-radius: 4px;
	padding: 0.8rem 1rem;
	box-sizing: border-box;
	width: 100%;
}

.contact-form input:focus,
.contact-form textarea:focus {
	outline: none;
	border-color: var(--color-orange);
}

.contact-form textarea {
	resize: vertical;
	min-height: 140px;
}

.contact-form button {
	align-self: flex-start;
	font-family: var(--font-volume-reg);
	font-size: 1.3rem;
	color: var(--color-background);
	background-color: var(--color-olive);
	border: none;
	border-radius: 4px;
	padding: 0.9rem 2.2rem;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.contact-form button:hover {
	background-color: var(--color-burgundy);
}
.contact-success {
	font-family: var(--font-volume-reg);
	font-size: 1.3rem;
	color: var(--color-orange);
	margin-top: 2rem;
	text-align: left;
	margin-left: 0;
}

/*=========== 404 ERROR ===========*/

.error-404-page {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	min-height: 60vh;
	padding: 4rem 2rem;
}

.error-404-number {
	font-family: var(--font-volume-bold);
	color: var(--color-burgundy);
	font-size: 7rem;
	line-height: 1;
	margin-bottom: 1rem;
}

.error-404-title {
	font-family: var(--font-volume-reg);
	color: var(--color-heading);
	font-size: 2.2rem;
	margin-bottom: 1rem;
	margin-left: 0rem;
	margin-top: 0rem;
}

.error-404-text {
	font-family: var(--font-volume-reg);
	color: var(--color-nav-text);
	font-size: 1.3rem;
	max-width: 480px;
}

.error-404-link {
	color: var(--color-burgundy);
	text-decoration: underline;
}

.error-404-link:hover {
	color: var(--color-hover);
}

.timeline-jump-label {
	display: none;
}

/*=========== FOOTER ===========*/
footer {
	border-top: 1px solid var(--color-burgundy);
	padding: 1.3rem 1rem;
    margin-left: 2rem;
    margin-right: 2rem;
	display: flex;
	justify-content: center;
	font-family: var(--font-nav);
	color: var(--color-nav-text);
}

footer p {
	color: var(--color-nav-text);
	text-decoration: none;
	text-align: center;
	font-size: 1.1rem;

}

.highlight {
	color: var(--color-orange);
}

/*=========== RESPONSIVE DESIGN SECTIONS ===========*/

/*==== LARGE TABLET / SMALL DESKTOP - 1024px to 1346px ====*/
@media (min-width: 1024px) and (max-width: 1346px) {
	.timeline-event {
		gap: 3rem;
		margin-top: 0rem;
	}

	.timeline-event-image {
		width: 330px;
		height: 330px;
		margin-left: 0rem;
	}

	.timeline-event-text > h2{
		font-size: 3rem;
	}

	.timeline-event-text h3 {
		font-size: 1.6rem;
	}

	.timeline-event-text p {
		font-size: 1.2rem;
		max-width: 400px;
		margin-right: 0rem;
	}

	.glossary-grid {
		grid-template-columns: 1fr;
		row-gap: 2rem;
	}

}

/*==== TABLET VIEW - 751px to 1024px ====*/
@media (min-width: 751px) and (max-width: 1024px) {
	.doors-grid {
		grid-template-columns: repeat(2, 1fr);
		max-width: 700px;
		align-items: center;
	}

	.home-content h1 {
		margin-left: 0rem;
		font-size: 2.5rem;
	}

	.glossary-grid {
		grid-template-columns: 1fr;
		row-gap: 2rem;
	}

	.glossary-term {
		margin-left: 3rem;
	}

	.glossary-term img {
		max-width: 200px;
	}

	.menu-toggle {
		display: none;
	}
	
	.contact-page {
		max-width: 550px;
	}

	.timeline-event-image {
		width: 280px;
		height: 280px;
		margin-left: 0rem;
	}

	.timeline-event-text > h2 {
		font-size: 3rem;
	}

	.timeline-event-text h3 {
		font-size: 1.6rem;
	}

	.timeline-event-text p {
		font-size: 1.2rem;
		max-width: 400px;
		margin-right: 0rem;
	}

}

/*==== PHONE VIEW - up to 750px ====*/
@media (max-width: 750px) {

	h1{
		font-size: 2.5rem;
		line-height: 1.2;
		margin-left: 3rem;
		margin-right: 3rem;
		margin-top: 1.5rem;
	}

	h2{
		font-size: 1.1rem;
		line-height: 1.2;
		margin-left: 8rem;
		margin-right: 8rem;
		margin-top: 1.3rem;
	}

	p {
		font-size: 1.3rem;
		line-height: 1.4;
		margin-left: 3rem;
		margin-right: 3rem;
	}

	.doors-grid {
		grid-template-columns: repeat(2, 1fr);
		margin: 2.5rem 2.5rem 0 2.5rem; 
	}

	.home-content h1 {
		font-size: 2rem;
		line-height: 1.2;
		max-width: 70%;
		margin: 0 auto;
		margin-top: 1.4rem;
	}

	.door-name {
		font-size: 1.4rem;
		text-align: center;
		margin-top: 1rem;
		margin-bottom: 0rem;
	}

	footer {
		padding: 1.3rem 1rem;
		margin-left: 2rem;
		margin-right: 2rem;
		flex-direction: column;
		align-items: center;
		text-align: center;
		margin-top: 1.5rem;
		font-size: 1.2rem;
	}

	footer p {
		font-size: 1.2rem;
		margin-bottom: 1rem;
	}

	.site-header {
		padding: 2rem 1rem;
		margin-left: 2rem;
		margin-right: 2rem;
	}

	.menu-toggle {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 32px;
		height: 32px;
		background: none;
		border: none;
		padding: 0;
		cursor: pointer;
		position: relative;
		z-index: 1000;
	}

	.menu-toggle-icon {
		width: 30px;
		height: 30px;
		transition: transform 0.3s ease;
	}

	.menu-toggle.is-active .menu-toggle-icon {
		transform: rotate(60deg);
	}

	.menu-toggle:hover .menu-toggle-icon {
		transform: rotate(45deg);
	}

	.screen-reader-text {
		position: absolute;
		width: 1px;
		height: 1px;
		padding: 0;
		margin: -1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
		white-space: nowrap;
		border: 0;
	}

	.primary-menu {
		display: none;
	}

	.primary-menu.is-open {
		position: fixed;
		inset: 0;
		background-color: var(--color-background);
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		z-index: 999;
	}

	.primary-menu.is-open ul {
		flex-direction: column;
		align-items: center;
		gap: 2rem;
	}

	.primary-menu.is-open a {
		font-size: 1.8rem;
	}

	body.nav-open {
		overflow: hidden;
	}

	.glossary-page {
		padding-left:3.5rem;
		padding-right:2rem;
	}
	
	.glossary-page h1 {
		font-size: 2.5rem;
	}

	.glossary-page p {
		font-size: 1.2rem;
	}

	.glossary-category summary {
		font-size: 1.6rem;
	}
	
	.glossary-grid {
		grid-template-columns: 1fr;
		row-gap: 2rem;
		margin-right: 2rem;
	}

	.glossary-term {
		grid-template-columns: 1fr;
		row-gap: 0.5rem;
		text-align: left;
	}

	.glossary-term img {
		grid-column: 1;
		grid-row: 1;
		width: 200px;
		max-width: 200px;
		margin-bottom: 1rem;
		margin-left: 0rem;
	}

	.glossary-text {
		grid-column: 1;
		grid-row: 2;
		padding-top: 0rem;
	}

	.glossary-term p {
		margin-right: 0rem;
	}

	.timeline-jump-label {
		display: block;
		font-family: var(--font-nav);
		font-size: 0.8rem;
		letter-spacing: 0.1em;
		text-transform: uppercase;
		color: var(--color-olive);
		margin-bottom: 0.75rem;
	}

	.timeline-track {
		display: flex;
		overflow-x: auto;
		gap: 1.5rem;
		margin: 0;
		margin-bottom: 1.4rem;
		padding: 0 0 0.6rem;
	}

	.timeline-track::-webkit-scrollbar {
		height: 4px;
	}

	.timeline-track::-webkit-scrollbar-track {
		background: rgba(0, 0, 0, 0.08);
		border-radius: 2px;
	}

	.timeline-track::-webkit-scrollbar-thumb {
		background-color: var(--color-orange);
		border-radius: 2px;
		scrollbar-width: 2px;
	}

	.timeline-point {
		flex-shrink: 0;
		align-items: flex-start;
	}

	.timeline-dot {
		display: none;
	}

	.timeline-year {
		font-size: 1rem;
		color: var(--color-nav-text);
		margin-top: 0;
		white-space: nowrap;
		padding-bottom: 0.75rem;
		}

	.timeline-point.active .timeline-year {
		color: var(--color-orange);
		font-weight: 600;
		font-size: 1rem;
		border-bottom-color: var(--color-orange);
	}

	.timeline-track::before{
		display: none;
	}

	.timeline-events-scroll {
		display: flex;
		flex-direction: column;
		gap: 3rem;
	}

	.timeline-event {
		display: flex;
		flex-direction: column;
		align-items: center;
		text-align: center;
		gap: 0;
	}

	.timeline-event-image {
		width: 300px;
		height: 300px;
		padding-left: 0;
	}

	.timeline-event-image img {
		border-radius: 50%;
		width: 100%;
		height: 100%;
		object-fit: cover;
		margin-top: .5rem;
	}

	.timeline-event-text {
		display: flex;
		flex-direction: column;
		align-items: center;
		margin-top: 1.5rem;
	}

	.timeline-event-text > h2 {
		text-align: center;
		font-size: 2.2rem;
		margin-top: 1rem;
		margin-bottom: 0rem;
	}

	.timeline-event-text h3 {
		font-size: 1.4rem;
		margin-top: 0.5rem;
		margin-bottom: 0rem;
	}

	.timeline-event-text p {
		max-width: 320px;
		text-align: center;
		margin-top: 0.5rem;
		margin-right: 0;
		margin-bottom: 0;
		font-size: 1.2rem;
	}

	.timeline-event:not(:last-child) {
		position: relative;
	}

	.timeline-event:not(:last-child)::after {
		content: '';
		position: absolute;
		bottom: -1.5rem;
		left: 50%;
		transform: translateX(-50%);
		width: 1px;
		height: 1.5rem;
		border-left: 1px solid var(--color-heading);
	}

	.beit-subtitle {
		font-size: 1.2rem;
		line-height: 1.1;
	}

	.text-pages {
		margin: 0 auto;
	}

	.contact-page {
		max-width: 450px;
	}
}

/*==== SMALL PHONE VIEW - up to 500px ====*/
@media (max-width: 500px) {
	

	h2{
		font-size: 1.2rem;
		line-height: 1.2;
		margin-left: 4.2rem;
		margin-right: 4.2rem;

		margin-top: 1.3rem;
	}

	.doors-grid {
		grid-template-columns: repeat(1, 1fr);
		max-width: 70%;
		margin: 0 auto;
		align-items: center;
	}

	.beit-single {
		padding: 1rem 3.5rem;
	}
	.beit-subtitle {
		font-size: 1rem;
		line-height: 1.1;
		margin-right: 0;
	}

	.beit-subtitle .dot {
		font-size: 1.5rem;
	}

	footer p {
		font-size: 1rem;
	}

	footer {
		margin-top: 1rem;
	}

	.next-home-nav {
		gap: 0.4rem;
		padding-right: 0.6rem;
	}

	.next-home-icon {
		width: 20px;
		height: 20px;
	}

	.next-home-label {
		font-size: 0.7rem;
	}

	.next-home-title {
		font-size: 1rem;
	}

	.contact-page {
		max-width: 350px;
	}

	.text-pages {
		margin: 0;
		padding: 0 0.5rem;
	}
}