/* Integrated Human Practices Timeline Styles */

html.stakeholder-modal-open .navbar {
	opacity: 0;
	pointer-events: none;
	transform: translateY(-20px);
	transition:
		opacity 0.25s ease,
		transform 0.35s ease;
}
body.stakeholder-modal-lock {
	overflow: hidden;
}
html.stakeholder-modal-open #sidebar {
	opacity: 0 !important;
	pointer-events: none !important;
	transform: translateX(-40px) scale(0.98);
	transition:
		opacity 0.25s ease,
		transform 0.35s ease;
}
html.stakeholder-modal-open #open-btn {
	opacity: 0 !important;
	pointer-events: none !important;
	transition: opacity 0.25s ease;
}
html.stakeholder-modal-open #sidebar-backdrop {
	opacity: 0 !important;
	pointer-events: none !important;
}

.ihp-timeline {
	position: relative;
	padding: 0px 0 0px;
	max-width: 1400px;
	margin: 0 auto 0;
	--timeline-column-width: clamp(240px, 22vw, 320px);
	--timeline-card-offset: clamp(72px, 12vh, 132px);
	--timeline-pin-size: clamp(18px, 2.1vw, 22px);
	--timeline-horizontal-gap: 64px;
}
.ihp-timeline .timeline-line {
	position: absolute;
	left: 32px;
	right: 32px;
	top: 50%;
	transform: translateY(-50%);
	height: 4px;
	background: var(--primary-color);
	border-radius: 4px;
	z-index: 0;
}
.timeline-items {
	position: relative;
	display: flex;
	flex-wrap: nowrap;
	gap: var(--timeline-horizontal-gap);
	justify-content: flex-start;
	padding: 0 32px;
	overflow-x: auto;
	overflow-y: hidden;
	scrollbar-width: thin;
	align-items: stretch;
	scroll-snap-type: x proximity;
	min-height: clamp(460px, 68vh, 620px);
}
.timeline-items::-webkit-scrollbar {
	height: 8px;
}
.timeline-items::-webkit-scrollbar-track {
	background: #eee;
	border-radius: 4px;
}
.timeline-items::-webkit-scrollbar-thumb {
	background: var(--primary-color);
	border-radius: 4px;
}

.timeline-item {
	position: relative;
	flex: 0 0 var(--timeline-column-width);
	display: grid;
	grid-template-rows: minmax(0, 1fr) auto minmax(0, 1fr);
	justify-items: center;
	align-items: center;
	row-gap: calc(var(--timeline-card-offset) - (var(--timeline-pin-size) / 2));
	scroll-snap-align: start;
	min-height: 100%;
}

.timeline-item .timeline-pin {
	grid-row: 2;
	width: var(--timeline-pin-size);
	height: var(--timeline-pin-size);
	background: var(--primary-color);
	border-radius: 50%;
	box-shadow: 0 0 0 6px var(--background);
	border: 4px solid var(--background);
	z-index: 2;
	pointer-events: none;
}

.timeline-item:nth-child(odd) .timeline-card {
	grid-row: 1;
	align-self: end;
}
.timeline-item:nth-child(even) .timeline-card {
	grid-row: 3;
	align-self: start;
}

.timeline-card {
	position: relative;
	width: 100%;
	background: var(--alt-background);
	color: var(--white);
	border-radius: 20px;
	padding: 18px 22px 24px;
	display: flex;
	flex-direction: column;
	gap: 14px;
	min-height: 220px;
	box-shadow: 0 12px 24px -12px rgba(0, 0, 0, 0.35);
	cursor: pointer;
	transition:
		transform 0.25s ease,
		box-shadow 0.25s ease;
}
.timeline-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 16px 28px -12px rgba(0, 0, 0, 0.45);
}
.timeline-card:focus-visible {
	outline: 3px solid var(--accent);
	outline-offset: 4px;
}

.timeline-item:nth-child(odd) .timeline-card::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: calc(-1 * var(--timeline-card-offset));
	width: 2px;
	height: var(--timeline-card-offset);
	background: var(--primary-color);
	transform: translateX(-50%);
}

.timeline-item:nth-child(even) .timeline-card::after {
	content: "";
	position: absolute;
	left: 50%;
	top: calc(-1 * var(--timeline-card-offset));
	width: 2px;
	height: var(--timeline-card-offset);
	background: var(--primary-color);
	transform: translateX(-50%);
}
.timeline-card .timeline-date,
.timeline-card .timeline-title,
.timeline-card .timeline-person,
.timeline-card p {
	color: var(--white) !important;
}

.timeline-media {
	display: none;
}
.timeline-text {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.timeline-date {
	font-weight: 600;
	font-size: 0.95rem;
	letter-spacing: 0.4px;
	text-transform: uppercase;
}
.timeline-title {
	font-size: clamp(1.1rem, 1.6vw, 1.5rem);
	margin: 0;
	line-height: 1.2;
	word-break: break-word;
}
.timeline-person {
	margin: 0;
	font-weight: 600;
	font-size: 1rem;
	opacity: 0.92;
}
.timeline-card p {
	margin: 0;
	line-height: 1.45;
	font-size: 0.98rem;
}


.stakeholder-modal {
	position: fixed;
	inset: 0;
	display: none;
	z-index: 1000;
	height: 100dvh;
	overflow-y: scroll;
	overflow-x: hidden;
}
.stakeholder-modal.active {
	display: block;
}
.modal-backdrop {
	position: absolute;
	inset: 0;
	background: transparent;
}
.stakeholder-modal-content {
	position: relative;
	max-width: 980px;
	margin: 60px auto;
	background: var(--secondary-color);
	border-radius: 28px;
	padding: 70px 70px 72px;
	color: var(--white);
	font-family: var(--font-family-primary);
	box-shadow:
		0 12px 40px -4px rgba(0, 0, 0, 0.45),
		0 0 0 1px rgba(255, 255, 255, 0.05);
	isolation: isolate;
}
.stakeholder-modal-content,
.stakeholder-modal-content * {
	filter: none !important;
	-webkit-filter: none !important;
	backdrop-filter: none !important;
	text-shadow: none !important;
}
.stakeholder-modal-content {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}
.stakeholder-modal-content h3 {
	position: relative;
	padding-bottom: 8px;
	margin-bottom: 26px;
	font-size: 2.6rem;
	letter-spacing: 0.5px;
}
.stakeholder-modal-content h3:after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 140px;
	height: 3px;
	border-radius: 2px;
}
.close-stakeholder-modal {
	position: absolute;
	top: 14px;
	right: 18px;
	background: transparent;
	color: var(--white);
	font-size: 2rem;
	line-height: 1;
	border: none;
	cursor: pointer;
}
.modal-header-row {
	display: flex;
	justify-content: space-between;
	gap: 50px;
	flex-wrap: wrap;
}
.modal-header-left h3 {
	font-size: 2.4rem;
	margin: 0.2rem 0 0.7rem;
	font-family: var(--heading-font, "Montserrat", sans-serif);
}
.modal-date {
	font-weight: 600;
	font-size: 1.2rem;
	letter-spacing: 0.5px;
	display: block;
}
.modal-person {
	font-weight: 600;
	font-size: 1.15rem;
	margin: 0;
}
.modal-image-wrapper {
	flex: 0 0 160px;
	display: flex;
	align-items: flex-start;
	justify-content: flex-end;
}
.modal-image-wrapper img {
	max-width: 140px;
	width: 100%;
	border-radius: 4px;
	filter: none !important;
}
.modal-divider {
	margin: 40px 0 30px;
	border: none;
	border-top: 2px solid var(--primary-color);
}
.modal-body-copy {
	display: grid;
	gap: 44px;
}
.modal-section h4 {
	font-size: 1.55rem;
	margin: 0 0 14px;
	letter-spacing: 0.5px;
	position: relative;
	padding-bottom: 6px;
}
/* Removed purple accent underline below modal section titles per request */
/*.modal-section h4:after { display:none; }*/
.modal-section p {
	line-height: 1.6;
	margin: 0;
	font-size: 1.06rem;
	max-width: 100%;
}
.close-stakeholder-modal {
	background: rgba(255, 255, 255, 0.08);
	width: 46px;
	height: 46px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 2rem;
	transition: background 0.25s;
}
.close-stakeholder-modal:hover {
	background: rgba(255, 255, 255, 0.18);
}

/* Ensure all modal text is fully white for contrast */
.stakeholder-modal-content,
.stakeholder-modal-content h3,
.stakeholder-modal-content h4,
.stakeholder-modal-content p,
.stakeholder-modal-content .modal-date,
.stakeholder-modal-content .modal-person {
	color: var(--white) !important;
}

@media (max-width: 1100px) {
	.ihp-timeline {
		--timeline-column-width: clamp(220px, 32vw, 280px);
		--timeline-card-offset: clamp(64px, 14vh, 110px);
		--timeline-pin-size: clamp(18px, 2.6vw, 20px);
		--timeline-horizontal-gap: 48px;
	}
	.timeline-items {
		padding: 0 10px;
		min-height: clamp(420px, 64vh, 560px);
	}
	.ihp-timeline .timeline-line {
		left: 24px;
		right: 24px;
	}
	.timeline-card {
		min-height: 210px;
		padding: 18px 20px 22px;
	}
}
@media (max-width: 820px) {
	.ihp-timeline {
		padding: 36px 0 36px;
		--timeline-column-width: clamp(220px, 68vw, 260px);
		--timeline-card-offset: clamp(56px, 18vh, 92px);
		--timeline-pin-size: clamp(16px, 3vw, 18px);
		--timeline-horizontal-gap: 32px;
	}
	.timeline-items {
		padding: 0 16px;
		min-height: clamp(380px, 70vh, 520px);
	}
	.ihp-timeline .timeline-line {
		left: 16px;
		right: 16px;
	}
	.timeline-card {
		padding: 16px 18px 20px;
		min-height: 200px;
	}
	.timeline-title {
		font-size: clamp(1.05rem, 4vw, 1.3rem);
	}
	.timeline-card p {
		font-size: 0.94rem;
	}
	.stakeholder-modal-content {
		margin: 20px auto;
		padding: 46px 34px 64px;
		border-radius: 24px;
	}
	.modal-header-row {
		flex-direction: column-reverse;
	}
	.modal-image-wrapper {
		justify-content: flex-start;
	}
}
@media (prefers-reduced-motion: reduce) {
	.stakeholder-modal-content,
	.timeline-card {
		transition: none;
	}
}

.content-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 20px;
}

h2,
h3,
h4 {
	font-family: var(--heading-font);
	color: var(--primary-color);
	margin-bottom: 20px;
}

h2 {
	font-size: 2em;
}

h3 {
	font-size: 1.6em;
	margin-top: 30px;
}

h4 {
	font-size: 1.4em;
	margin-top: 20px;
}

p,
li {
	font-family: var(--body-font);
	color: var(--text-color);
	line-height: 1.6;
}

.smart-goals,
.question-dropdowns {
	max-width: 900px;
	margin: 20px auto;
}

.goal-dropdown,
.dropdown-question {
	margin-bottom: 15px;
}

.dropdown-btn {
	width: 100%;
	padding: 15px 20px;
	background-color: var(--alt-background);
	color: white;
	border: none;
	border-radius: 8px;
	text-align: left;
	font-size: 1.1em;
	cursor: pointer;
	display: flex;
	justify-content: space-between;
	align-items: center;
	transition: background-color 0.3s;
}

.dropdown-btn:hover {
	background-color: var(--secondary-color);
}

.dropdown-icon {
	font-size: 1.2em;
	transition: transform 0.3s;
}

.goal-dropdown.active .dropdown-icon,
.dropdown-question.active .dropdown-icon {
	transform: rotate(45deg);
}

.dropdown-content {
	max-height: 0;
	overflow: hidden;
	padding: 0 20px;
	background-color: #fff3d4;
	border-radius: 0 0 8px 8px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	transition:
		max-height linear 0.4s,
		padding linear 0.3s;
}

.goal-dropdown.active .dropdown-content,
.dropdown-question.active .dropdown-content {
	max-height: 999px;
	padding: 20px;
}

.hredd-table-container {
	max-width: 1200px;
	margin: 30px auto;
	overflow-x: auto;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
	border-radius: 8px;
}

.hredd-table {
	width: 100%;
	border-collapse: collapse;
	background-color: #fff3d4;
	font-family: var(--body-font);
}

.hredd-table th {
	background-color: var(--primary-color);
	color: white;
	padding: 15px;
	text-align: left;
	font-family: var(--heading-font);
	font-weight: normal;
}

.hredd-table td {
	padding: 12px 15px;
	border-bottom: 1px solid var(--border-color);
	vertical-align: top;
	line-height: 1.5;
}

.hredd-table tbody tr:hover {
	background-color: var(--background-light);
}

.hredd-cycle-container {
	max-width: 600px;
	margin: 30px auto;
	text-align: center;
}

.hredd-cycle-image {
	width: 100%;
	height: auto;
	max-width: 500px;
}

.commitment-statement {
	background-color: #704828;
	border-radius: 15px;
	padding: 25px;
	margin: 20px auto;
	max-width: 800px;
	color: white !important;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);

	* {
		color: white !important;
	}
}

.commitment-statement h4 {
	margin-top: 0;
	color: var(--primary-color);
	font-size: 1.4em;
	margin-bottom: 20px;
	font-family: var(--heading-font);
	border-bottom: 1px solid rgba(255, 255, 255, 0.2);
	padding-bottom: 15px;
}

.commitment-principles {
	margin: 20px 0;
}

.commitment-principles ul {
	list-style-type: none;
	padding-left: 20px;
	margin-top: 10px;
}

.commitment-principles li {
	margin-bottom: 10px;
	position: relative;
	padding-left: 20px;
}

.commitment-principles li:before {
	content: "•";
	position: absolute;
	left: 0;
	color: #f4f1de;
}

.commitment-points ol {
	padding-left: 25px;
	margin-top: 20px;
}

.commitment-points li {
	margin-bottom: 15px;
	line-height: 1.6;
}

.commitment-signature {
	margin-top: 25px;
	padding-top: 15px;
	border-top: 1px solid rgba(255, 255, 255, 0.2);
	font-style: italic;
}

.commitment-statement strong {
	color: var(--primary-color);
}

.monthly-report-template {
	border-radius: 15px;
	padding: 25px;
	margin: 20px auto;
	max-width: 800px;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);

	background-color: #704828;
	* {
		color: white !important;
	}
}

.monthly-report-template h4 {
	margin-top: 0;
	color: var(--primary-color);
	font-size: 1.4em;
	margin-bottom: 20px;
}

.monthly-report-template ol {
	margin-left: 20px;
	padding-left: 20px;
}

.monthly-report-template li {
	margin-bottom: 10px;
}

.monthly-report-template strong {
	color: var(--primary-color);
}

.bibliography {
	max-width: 1200px;
	margin: 40px auto;
	padding: 20px;
}

.bibliography h2 {
	color: var(--primary-color);
	font-family: var(--heading-font);
	margin-bottom: 20px;
}

.references-list {
	list-style-type: decimal;
	padding-left: 40px;
}

.references-list li {
	margin-bottom: 15px;
	line-height: 1.6;
	font-family: var(--body-font);
	color: var(--text-color);
}

.references-list a {
	color: var(--link-color);
	text-decoration: none;
}

.references-list a:hover {
	text-decoration: underline;
}
