/* ---------------------------------------------------------
	 1. RESET & VARIABLES
--------------------------------------------------------- */
* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html,
body {
	height: 100%;
	font-family: 'Roboto', sans-serif;
	scroll-behavior: smooth;
	background: #f6f7f9;
	color: #222;
}

:root {
	--soft-gray: #f6f7f9;
	--cream: #ffffff;
	--accent-line: rgba(72,74,58,0.08);
	--olive: #6b8e23;
	--olive-dark: #22302a;
	--olive-light: #8ab24f;
	--text-dark: #222;
	--header-height: 110px;
	--sticky-map-height: 520px;
	--gradient-primary: linear-gradient(135deg, #6b8e23 0%, #8ab24f 100%);
	--gradient-subtle: linear-gradient(135deg, #f6f7f9 0%, #e8f0e3 100%);
}

/* ---------------------------------------------------------
	 2. GLOBAL TYPOGRAPHY
--------------------------------------------------------- */
body {
	line-height: 1.7;
	background: var(--soft-gray);
	color: var(--text-dark);
}

h1,
h2,
h3,
h4 {
	color: var(--olive-dark);
	font-weight: 800;
	letter-spacing: 0.3px;
}

p {
	font-size: 1.1rem;
	color: #333;
	line-height: 1.8;
}

a {
	color: var(--olive);
	text-decoration: none;
	transition: color .2s ease;
}

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

/* ---------------------------------------------------------
	 3. NAVIGATION
--------------------------------------------------------- */
.site-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: #484a3a;
	padding: 14px 6%;
	position: sticky;
	top: 0;
	z-index: 1000;
}

.logo-link {
	background: white;
	padding: 6px 12px;
	border-radius: 6px;
	display: flex;
	align-items: center;
	text-decoration: none;
	opacity: 0.9;
}

.site-logo {
	height: 60px;
	width: auto;
}

.main-nav {
	display: flex;
	gap: 14px;
}

.main-nav a {
	color: white;
	font-weight: 600;
	padding: 8px 16px;
	border-radius: 6px;
	background: rgba(255,255,255,0.1);
	border: 2px solid #e5e7eb;
	transition: all 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
	background: white;
	color: #484a3a;
	border-color: #fff;
}

/* Top nav adapts earlier for half-width desktop windows */
@media (max-width:1200px) {
  .site-header {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 10px 4%;
  }
  .logo-link {
    margin: 0 auto;
  }
  .main-nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .main-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.25;
    min-height: 46px;
    padding: 10px 12px;
  }
}

@media (max-width:640px) {
  .main-nav {
    grid-template-columns: 1fr;
  }
}

/* ---------------------------------------------------------
	 4. INDEX/LANDING PAGE
--------------------------------------------------------- */
/* Disable scrolling ONLY on index page */
.index-page {
  min-height: 100vh;
  overflow: hidden;
  background-color: #3f4432;
}

.hero-landing {
  position: relative;
  min-height: calc(100vh - 86px); /* adjust to your nav height */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('images/campatterbury_livetraining.jpg') center center / 100% 100% no-repeat;
  background-color: #3f4432;
  animation: bgZoom 15s ease-in-out infinite alternate;
}

@keyframes bgZoom {
	0% {
		transform: scale(1);
	}
	100% {
		transform: scale(1.1);
	}
}

.hero-overlay {
	position: absolute;
	inset: 0;
	background: rgba(72,74,58,0.3);
	display: flex;
	align-items: center;
	justify-content: center;
}

.hero-card {
	text-align: center;
	max-width: 720px;
	padding: 40px 32px;
	background: rgba(255,255,255,0.94);
	border-radius: 14px;
	box-shadow: 0 4px 20px rgba(0,0,0,0.2);
	margin-top: -40px;
}

.hero-card h1 {
	font-size: 3.6rem;
	font-weight: 900;
	color: #22302a;
}

.hero-subtitle {
	font-size: 1.5rem;
	font-style: italic;
	line-height: 1.35;
}

/* ----- INDEX START BUTTON ----- */
.start-btn {
  display: inline-block;
  margin-top: 50px;
  padding: 12px 28px;
  background: #5c5c4f;
  color: #ffffff;
  font-size: 1.1rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  z-index: 10;
  position: relative;
  border: 2px solid #ffffff;
  transition: background 0.3s ease, color 0.3s ease;
}

.start-btn:hover {
  background: #ffffff;
  color: #5c5c4f;
}

/* ---------------------------------------------------------
	 5. BACKGROUND PAGE
--------------------------------------------------------- */
.background-flex {
	display: flex;
	flex-direction: row;
	align-items: stretch;
	justify-content: space-between;
	gap: 0px;
	background: linear-gradient(90deg,#f6f7f9 78%,#f0f2ed 100%);
	border-radius: 14px;
	padding: 40px 6%;
	box-shadow: 0 3px 14px rgba(60,60,60,0.08);
	margin: 40px auto;
	max-width: 1500px;
}

.background-text-block {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-width: 300px;
}

background-text {
  font-size: 1.1rem;
  line-height: 1.75;
  text-align: justify;
}

.background-text p,
.background-text {
  margin-bottom: 1.25rem;
}

.background-image {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
}

.background-image img {
	max-width: 360px;
	border-radius: 12px;
	box-shadow: 0 4px 20px rgba(0,0,0,0.12);
	border: 1px solid #e5e7eb;
	cursor: zoom-in;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.background-image img:hover {
	transform: scale(1.02);
	box-shadow: 0 8px 32px rgba(0,0,0,0.25);
}

.background-image-caption {
	margin-top: 10px;
	color: #555;
	font-size: 0.95rem;
	font-style: italic;
  opacity: 0.85;
}

@media (max-width:900px) {
	.background-flex {
		flex-direction: column;
		align-items: center;
		padding: 32px 24px;
	}
}

.background-title {
  font-size: 2.5rem;
  font-weight: 900;
  text-align: center;
  color: var(--olive-dark);
  margin-bottom: 26px;
  letter-spacing: 0.5px;
}


/* ---------------------------------------------------------
	 6. INTRO SECTIONS
--------------------------------------------------------- */
.intro-section {
	position: relative;
	background: linear-gradient(rgba(255,255,255,0.93), rgba(255,255,255,0.93)), url('images/campatterbury_livetraining.jpg') center/cover no-repeat;
	border-radius: 0 0 14px 14px;
	box-shadow: 0 6px 28px rgba(6,10,18,0.06);
	text-align: left;
	padding: 100px 6% 48px;
}

/* Global content container for consistent page widths */
.container {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 6%;
}

.page-title {
	position: relative;
	font-size: 2.5rem;
	font-weight: 900;
	color: var(--olive-dark);
	margin-bottom: -8px;
	padding-left: 20px;
}

.page-title::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 5px;
	background: var(--gradient-primary);
	border-radius: 2px;
}

.page-subtitle {
	font-size: 1.5rem;
	font-style: italic;
	color: #3b3c32;
	margin-bottom: 26px;
}

.intro-text {
  max-width: 880px;
  margin: 0 auto;
  text-align: left;
  background: rgba(255,255,255,0.95);
  border-radius: 14px;
  padding: 36px 44px;
  box-shadow: 0 6px 28px rgba(6,10,18,0.06);
}

.intro-text p {
  margin-bottom: 18px;
  line-height: 1.7;
}

.intro-text .bullets {
  text-align: left;
  margin: 18px 0 22px 24px;
  padding-left: 18px;
}

.intro-text .bullets li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.card-front {
  position: relative;
}

.photo-credit-tooltip {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 20;
}

/* ---------------------------------------------------------
   ENHANCED VISUAL ELEMENTS FOR ENCROACHMENT PAGE
--------------------------------------------------------- */

/* Title wrapper with decorative accents */
.title-wrapper {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 20px;
	margin-bottom: -8px;
}

.title-accent {
	color: var(--olive);
	font-size: 1.5rem;
	font-weight: 300;
	opacity: 0.6;
	animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
	0%, 100% { opacity: 0.4; }
	50% { opacity: 0.8; }
}

/* Intro callout with gradient background */
.intro-callout {
	margin: 40px auto 20px;
	padding: 24px 32px;
	text-align: center;
	font-style: italic;
	font-size: 1.15rem;
	color: #2a2e24;
	background: linear-gradient(135deg, rgba(107, 142, 35, 0.08) 0%, rgba(138, 178, 79, 0.12) 100%);
	border-radius: 12px;
	border-left: 4px solid var(--olive);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
	position: relative;
	overflow: hidden;
	animation: fadeInUp 0.8s ease-out;
}

.intro-callout::before {
	content: "";
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
	animation: shimmer 3s infinite;
}

@keyframes shimmer {
	0% { left: -100%; }
	50%, 100% { left: 100%; }
}

@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Section headers with badges */
.section-header {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	margin-bottom: 20px;
	animation: fadeInUp 0.8s ease-out;
}

.section-badge {
	font-size: 2.5rem;
	filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
	animation: float 3s ease-in-out infinite;
}

@keyframes float {
	0%, 100% { transform: translateY(0px); }
	50% { transform: translateY(-8px); }
}

/* Enhanced accent headings */
.accent-heading {
	position: relative;
	display: inline-block;
	font-size: 2.2rem;
	font-weight: 900;
	color: var(--olive-dark);
	text-align: center;
	padding-bottom: 12px;
	padding-left: 20px;
}

.accent-heading::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 5px;
	background: var(--gradient-primary);
	border-radius: 2px;
}

/* Enhanced cards with hover effects */
.card {
	background: #fff;
	border-radius: 12px;
	padding: 24px;
	box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
	border: 1px solid #ececec;
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
}

.card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 4px;
	background: var(--gradient-primary);
	transform: scaleX(0);
	transition: transform 0.3s ease;
}

.card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.card:hover::before {
	transform: scaleX(1);
}

/* Enhanced EVA cards */
.eva-card {
	transition: all 0.3s ease;
	position: relative;
}

.eva-card::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 12px;
	box-shadow: 0 0 0 0 rgba(107, 142, 35, 0.4);
	transition: box-shadow 0.3s ease;
	pointer-events: none;
}

.eva-card:hover::after {
	box-shadow: 0 0 0 4px rgba(107, 142, 35, 0.2);
}

/* Enhanced buttons */
.eva-btn, .secondary-btn, .btn-map {
	position: relative;
	overflow: hidden;
	transition: all 0.3s ease;
}

.eva-btn::before, .secondary-btn::before, .btn-map::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 0;
	height: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.3);
	transform: translate(-50%, -50%);
	transition: width 0.6s ease, height 0.6s ease;
}

.eva-btn:hover::before, .secondary-btn:hover::before, .btn-map:hover::before {
	width: 300px;
	height: 300px;
}

/* Enhanced impact cards */
.impact-card {
	position: relative;
	overflow: hidden;
	transition: all 0.3s ease;
}

.impact-card::before {
	content: "";
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(107, 142, 35, 0.05), transparent);
	transition: left 0.5s ease;
}

.impact-card:hover::before {
	left: 100%;
}

.impact-title {
	position: relative;
	padding-bottom: 12px;
	margin-bottom: 12px;
}

.impact-title::before {
	content: "";
	position: absolute;
	width: 40px;
	height: 4px;
	background: var(--olive);
	border-radius: 4px;
	bottom: -8px;
	left: 0;
}

/* Enhanced accordion items */
.acc-item {
	background: #fff;
	border-radius: 12px;
	margin-bottom: 18px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
	border-left: 6px solid var(--olive);
	overflow: hidden;
	transition: all 0.3s ease;
	position: relative;
}

.acc-item::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 6px;
	height: 0;
	background: var(--gradient-primary);
	transition: height 0.3s ease;
}

.acc-item:hover {
	box-shadow: 0 6px 22px rgba(0, 0, 0, 0.12);
	transform: translateX(4px);
}

.acc-item:hover::before {
	height: 100%;
}

/* Enhanced hotspot table */
.hotspot-table {
	width: 100%;
	border-collapse: collapse;
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.hotspot-table thead {
	background: var(--gradient-primary);
	color: white;
}

.hotspot-table th {
	padding: 16px 20px;
	text-align: left;
	font-weight: 700;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	font-size: 0.9rem;
}

.hotspot-table tbody tr {
	border-bottom: 1px solid #f0f0f0;
	transition: all 0.3s ease;
}

.hotspot-table tbody tr:hover {
	background: rgba(107, 142, 35, 0.05);
	transform: scale(1.01);
}

.hotspot-table td {
	padding: 18px 20px;
}

/* Planning for Balance section enhancement */
.planning-balance-section {
	background: linear-gradient(to bottom, #ffffff 0%, #f4f7f1 50%, #ffffff 100%);
	padding: 60px 40px;
	border-radius: 8px;
	position: relative;
}

.planning-header {
	text-align: center;
	margin-bottom: 40px;
	margin-top: 10px;
}

.planning-divider {
	width: 120px;
	height: 4px;
	background: linear-gradient(90deg, transparent 0%, var(--olive) 50%, transparent 100%);
	margin: 0 auto;
	border-radius: 2px;
	box-shadow: 0 2px 8px rgba(107, 142, 35, 0.3);
}

/* Planning cards enhancement */
.planning-card {
	position: relative;
	background: linear-gradient(135deg, #ffffff 0%, #f9faf9 100%);
	transition: all 0.3s ease;
	border: 1px solid rgba(107, 142, 35, 0.15);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.planning-card:hover {
	background: linear-gradient(135deg, #f9faf9 0%, #e8f0e3 100%);
	transform: translateY(-4px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.planning-card-icon {
	position: absolute;
	top: 20px;
	right: 20px;
	width: 40px;
	height: 40px;
	opacity: 0.15;
}

.planning-card-icon svg {
	width: 100%;
	height: 100%;
	fill: var(--olive);
}

/* Bounce animation for scroll cue */
@keyframes bounce {
	0%, 20%, 50%, 80%, 100% {
		transform: translateY(0);
	}
	40% {
		transform: translateY(-10px);
	}
	60% {
		transform: translateY(-5px);
	}
}

.scroll-cue {
	display: block;
	text-align: center;
	margin-top: 20px;
	font-weight: 700;
	font-size: 1.1rem;
	color: var(--olive-dark);
	animation: bounce 2s infinite;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.data-source {
  text-align: center;
  font-size: 0.9em;
  color: #6b8e23;
  margin-top: 10px;
}

/* ---------------------------------------------------------
   Page layout helpers (previously inline in encroachment.html)
   These are shared layout utilities used by story pages: encroachment,
   incompatible land use, priority species, and extreme weather.
--------------------------------------------------------- */
.section { padding: 60px 0; }
.section-alt { background: linear-gradient(180deg,#f9faf9 0%,#fff 60%); }

/* eyebrow small label style used in some headers */
.eyebrow { font-size: 1rem; color: rgba(241,241,232,0.95); margin-top: 6px; font-weight: 600; }

/* simple two-column grid used on story pages */
.grid-2 { display: flex; gap: 28px; align-items: flex-start; }
.grid-2 .card, .grid-2-uneven .card { flex: 1; }

.card { background: #fff; border-radius: 10px; padding: 20px; box-shadow: 0 3px 12px rgba(0,0,0,0.06); border: 1px solid #ececec; }
.bullets { margin: 0 0 1rem 1.25rem; }
.note { background: #fffbea; border-left: 4px solid var(--olive); padding: 12px 14px; border-radius: 8px; margin-top: 12px; }

.parallax-wrapper { position: relative; border-radius: 12px; overflow: hidden; margin: 18px 0; }
.parallax-bg { position: absolute; inset: 0; background: url('images/aerial-atterbury.jpg') center/cover no-repeat; opacity: 0.08; filter: blur(2px); transform: scale(1.05); }
.map-embed, .panel-embed { min-height: 280px; background: linear-gradient(180deg,#fff,#f6f7f9); border: 1px solid #ececec; border-radius: 8px; }
.map-caption { font-size: 0.95rem; color: #555; margin-top: 8px; text-align: center; }

.table-wrap { overflow-x: auto; margin-top: 12px; }
.table-wrap table { width: 100%; border-collapse: collapse; background: #fff; }
.table-wrap th, .table-wrap td { padding: 12px 14px; border-bottom: 1px solid #f0f0f0; text-align: left; }

.grid-2-uneven { display: grid; grid-template-columns: 1fr 360px; gap: 28px; align-items: start; }
aside.sticky { position: sticky; top: calc(var(--header-height) + 16px); }

@media (max-width:900px) {
	.grid-2, .grid-2-uneven { display: block; }
	.card { margin-bottom: 18px; }
	.container { padding: 0 4%; }
	aside.sticky { position: static; }
}

.scroll-cue {
	display: block;
	text-align: center;
	margin-top: 20px;
	font-weight: 700;
	color: var(--olive-dark);
	animation: bounce 2s infinite;
}

/* Accordion embedded within intro */
.understanding-accordion {
  margin-top: 34px;
}

.acc-item {
  background: #fff;
  border-radius: 12px;
  margin-bottom: 18px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  border-left: 6px solid var(--olive);
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.acc-item:hover {
  box-shadow: 0 6px 22px rgba(0,0,0,0.12);
}

.acc-header {
  width: 100%;
  background: #fff;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 26px;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--olive-dark);
  cursor: pointer;
  text-align: left;
}



.acc-icon {
  transition: transform 0.3s ease;
}

.acc-header[aria-expanded="true"] .acc-icon {
  transform: rotate(180deg);
}

.acc-content {
  max-height: 0;
  overflow: hidden;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #2a2e24;
  padding: 0 26px;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.acc-header[aria-expanded="true"] + .acc-content {
  padding: 0 26px 20px 26px;
  max-height: 500px;
}

.acc-header[aria-expanded="true"] + .acc-content.acc-scrollable {
  overflow-y: auto;
  max-height: 400px;
}

.intro-section .parallax-bg,
.intro-section + .section .parallax-bg {
  display: none !important;
}

/* ---------------------------------------------------------
     7. TIMELINE & STICKY MAP
--------------------------------------------------------- */
.timeline {
  display: flex;
  gap: 70px;
  align-items: flex-start;
  padding: 32px 6% 80px !important;
  background: linear-gradient(180deg, #f9faf9 0%, #fff 60%);
}

/* Extra space correction for the section wrapper */
#timeline.section {
  padding-top: 32px !important;
  margin-top: 0 !important;
}

.timeline-case-btn {
  margin: 16px auto 0 auto; /* top auto bottom auto → centers */
  display: flex;            /* required for margin auto to work */
  justify-content: center;

  padding: 10px 16px;
  background: rgba(107, 142, 35, 0.12); /* soft olive tint */
  border: 2px solid var(--olive);
  border-radius: 10px;

  color: var(--olive-dark);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.2px;

  cursor: pointer;
  transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;

  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  position: relative;
  z-index: 10;
  pointer-events: auto;
}

.timeline-case-btn:hover {
  background: var(--olive);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.timeline-case-btn:active {
  transform: translateY(0);
  box-shadow: 0 3px 10px rgba(0,0,0,0.12);
}

.pin-icon {
  width: 18px;
  height: 18px;
  color: inherit; /* matches text color */
}

/* Make sticky map tall & immersive */
.sticky-map {
  position: sticky;
  top: 20px;
  flex: 1.8;
  bottom: auto;


  /* NEW: make it a vertical layout */
  display: flex;
  flex-direction: column;

  height: calc(100vh - 50px);
  max-height: calc(100vh - 50px);

  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(6,10,18,0.12);
  background: #fff;
}


/* Smooth fade transition for sticky map */
#mapDisplay {
  flex: 1 1 auto;
  position: relative;
  width: 100%;
  overflow: hidden;   /* MOVED here */
  border-radius: 12px 12px 0 0;
}

#mapDisplay iframe,
#mapDisplay .map-fade-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  transition: opacity 0.55s ease-in-out;
}

.map-fade-layer {
  opacity: 0;
  pointer-events: none;
}

/* Map navigation arrows for multi-source timelines */
.map-nav-arrows {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.4);
  height: 36px;
  padding: 3px 10px;
  border-radius: 18px;
  z-index: 10;
}

.map-nav-btn {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all 0.2s ease;
}

.map-nav-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.map-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.map-nav-counter {
  color: white;
  font-size: 14px;
  font-weight: 500;
  min-width: 50px;
  text-align: center;
}

.map-fullscreen-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: all 0.2s ease;
  z-index: 10;
  backdrop-filter: blur(4px);
}

.map-fullscreen-btn:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: scale(1.05);
}

.map-fullscreen-btn .fullscreen-icon {
  line-height: 1;
}

iframe:fullscreen,
img:fullscreen {
  width: 100vw;
  height: 100vh;
  object-fit: contain;
  background: #000;
}

/* Timeline steps */
.timeline-steps {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 42px;
}

.timeline-wrap {
  padding-top: 40px;    
  position: relative;
}

.timeline-step {
  background: rgba(255,255,255,0.92);
  border-left: 5px solid var(--olive);
  border-radius: 12px;
  padding: 24px 28px;
  box-shadow: 0 3px 16px rgba(0,0,0,0.06);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.timeline-step::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, transparent 0%, rgba(107, 142, 35, 0.03) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 0;
}

.timeline-step:hover {
  transform: translateX(4px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.timeline-step:hover::after {
  opacity: 1;
}

.timeline-step h3 {
  position: relative;
  z-index: 1;
  color: var(--olive-dark);
  font-size: 1.35rem;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(107, 142, 35, 0.15);
}

/* ACTIVE state when tied to the sticky map */
.timeline-step.active {
  transform: translateY(-4px);
  background: #f4f7f0;
  border-left: 6px solid olivedrab;

  /* Glow so user knows this section controls the map */
  outline: 3px solid rgba(107,142,35,0.35);
  box-shadow: 0 8px 28px #5b5c4e;
}

/* Decorative connector line to visually link it to the map */
.timeline-step.active::before {
  content: "";
  position: absolute;
  top: 20px;
  left: -28px;
  width: 18px;
  height: 3px;
  background: olivedrab;
  border-radius: 3px;
  opacity: 0.7;
}

/* Highlight title too */
.timeline-step.active h3 {
  color: #262c2a;
}

.map-caption-dynamic {
  margin-top: 12px;
  margin-left: 0;
  margin-right: 0;
  font-size: 0.95rem;
  color: #445;
  font-style: italic;
  text-align: center;   /* or center if you prefer */
  width: 100%;
  opacity: 0;
  transition: opacity 0.35s ease;
  padding-left: 4px;  /* subtle alignment with timeline panels */
}

.map-caption-dynamic.visible {
  opacity: 1;
}


/* Modal Overlay */
.case-modal {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.25s ease;
}

/* Modal becomes active */
.case-modal.visible {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.case-modal {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 60px;
  z-index: 1000;
  pointer-events: auto;
}

.case-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
  z-index: 999;
}

/* POPUP CONTAINER */
.case-modal-content {
  position: relative;
  width: min(60%);
  background: #ffffff;
  border-radius: 16px;
  padding: 32px 40px;
  box-shadow: 0 12px 35px rgba(0,0,0,0.25);
  z-index: 1001;
  pointer-events: auto;
  overflow-y: auto;
  max-height: calc(100vh - 120px);
  animation: modalFadeUp 0.35s ease-out;
}

/* Fade+slide animation */
@keyframes modalFadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* TITLE + UNDERLINE */
.case-modal h2 {
  margin: 0;
  font-size: 1.7rem;
  line-height: 1.3;
  font-weight: 800;
  color: #1e272e;
}

.case-modal-title-bar {
  width: 70px;
  height: 4px;
  background: #7ca34f;
  border-radius: 2px;
  margin: 12px 0 24px 0;
}

/* Close button */
.case-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  font-size: 26px;
  cursor: pointer;
  color: #444;
  transition: 0.2s;
}

.case-modal-close:hover {
  color: #000;
  transform: scale(1.1);
}

/* Text styling */
.case-modal p {
  font-size: 1.05rem;
  color: #2b2b2b;
  line-height: 1.65;
}

.case-modal strong {
  color: #1f3320;
}

/* Bullet styling */
.case-modal ul {
  margin: 12px 0 20px 0;
  padding-left: 20px;
}

.case-modal ul li {
  margin-bottom: 8px;
  line-height: 1.55;
}

/* Image styling */
.case-modal-img {
  margin-top: 26px;
  width: 60%;
  border-radius: 12px;
  display: block;       
  margin: 26px auto 0 auto;  
  border: 1px solid #dcdcdc;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.case-modal-caption {
  margin-top: 10px;
  font-size: 0.95rem;
  color: #555;
  font-style: italic;
  text-align: center;
}

.case-slide {
  display: none;
  animation: fadeSlide 0.35s ease;
}

.case-slide.visible {
  display: block;
}

@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.case-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.case-nav button {
  background: #6b8e23;
  color: white;
  border: none;
  padding: 6px 14px;
  font-size: 1.1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.2s ease;
}

.case-nav button:hover {
  background: #566f1c;
}

.case-counter {
  font-weight: 600;
  color: #333;
}


/* ---------------------------------------------------------
	 8. INTERACTIVE SECTIONS
--------------------------------------------------------- */
.interactive-section {
	padding: 90px 6%;
	background: linear-gradient(180deg,#ffffff 0%,#f6f7f9 100%);
	box-shadow: inset 0 1px 0 rgba(0,0,0,0.04);
}

.interactive-section h2 {
	text-align: center;
	font-size: 2rem;
	color: var(--olive-dark);
	margin-bottom: 20px;
}

.lead {
	max-width: 820px;
	margin: 0 auto 40px;
	text-align: center;
	background: #fff;
	border-left: 5px solid var(--olive);
	padding: 20px 26px;
	border-radius: 10px;
	box-shadow: 0 3px 16px rgba(0,0,0,0.05);
}

.map-container {
	max-width: 1000px;
	margin: 0 auto;
}

.map-placeholder {
	border: 2px dashed #c2c2c2;
	background: #f9faf9;
	color: #777;
	border-radius: 12px;
	height: 420px;
	line-height: 420px;
	font-weight: 500;
	text-align: center;
	transition: all 0.3s ease;
}

.map-placeholder:hover {
	background: #f0f2ed;
	transform: translateY(-2px);
}

.map-controls,
.map-layer-buttons {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	justify-content: center;
	margin-top: 12px;
}

.map-btn,
.map-layer-buttons button {
	background: var(--olive);
	color: #fff;
	border: none;
	border-radius: 6px;
	padding: 8px 16px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.15s ease;
}

.map-btn:hover,
.map-layer-buttons button:hover {
	background: #59781c;
	transform: translateY(-2px);
}

.eva-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 30px;
}

.eva-card {
  background: #fff;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  text-align: center;
}

.eva-preview {
  width: 100%;
  height: 260px;
  background: #f0f0f0;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.eva-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.eva-btn {
  background: #4c7c4c;
  color: #fff;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.2s;
}
.eva-btn:hover { background: #3d643d; }

.static-map-image {
  max-width: 90%;
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain; /* prevents stretching */
  display: block;
  margin: auto;
}

#mapDisplay {
  display: flex;
  align-items: center;   /* vertical centering */
  justify-content: center; /* horizontal centering */
}

.embedded-map-container {
  width: 100%;
  height: 95vh;   /* ← make the map significantly larger */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  margin: 1.5rem 0;
}

.embedded-map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.batcaption {
  font-size: 0.95rem;
  color: #555;
  margin-top: -0.5rem;
  text-align: center;
  line-height: 1.4;
}

/* =========================================================
   EVA MODAL — BACKDROP & POSITIONING  (YOUR ORIGINAL CODE)
========================================================= */

.eva-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 5000;
}

.eva-modal.visible {
  display: block;
}

.eva-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
}

/* =========================================================
   EVA MODAL CONTENT CONTAINER  (merged + upgraded)
========================================================= */

.eva-content {
  position: relative;
  max-width: 300px;
  margin: 80px auto;
  background: rgba(255, 255, 255);
  padding: 32px 40px;
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.18);

  animation: fadeSlideUp 0.35s ease-out;
  font-family: 'Roboto', sans-serif;
  transition: max-width 0.3s ease;
}

/* Expand to 800px when showing summary results */
.eva-content.showing-summary {
  max-width: 800px;
}

/* Upgraded animation */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Close button (unchanged) */
.eva-close {
  position: absolute;
  top: 18px;
  right: 22px;
  font-size: 28px;
  cursor: pointer;
  color: #444;
}

.eva-close:hover {
  color: #000;
}

/* =========================================================
   EVA HEADERS — NEW
========================================================= */

.eva-content h3 {
  font-size: 1.45rem;
  margin-bottom: 10px;
  font-weight: 700;
  color: #22302a;
  display: flex;
  align-items: center;
  gap: 10px;
}

.eva-content h4 {
  margin-top: 24px;
  margin-bottom: 10px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #46624b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* =========================================================
   EVA BULLETS — NEW
========================================================= */

.eva-content ul {
  margin: 0 0 12px 0;
  padding-left: 0;
  list-style: none;
}

.eva-content li {
  padding: 8px 0 8px 28px;
  font-size: 0.95rem;
  color: #333;
  position: relative;
  line-height: 1.45;
}

/* Default bullet (green) */
.eva-content li::before {
  content: "";
  width: 10px; 
  height: 10px;
  border-radius: 50%;
  position: absolute;
  left: 0;
  top: 12px;
  background: #6b8e23;
}

/* Encroachment section bullets (orange) */
.eva-content .encroach li::before {
  background: #c86c2b;
}

/* =========================================================
   EVA CITATION TAG — NEW
========================================================= */

.eva-cite {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-left: 6px;
  cursor: help;
  background: none;
  border: 1px solid #5f775c;
  border-radius: 50%;
  padding: 0;
  color: #3a513c;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  position: relative;
  vertical-align: middle;
}

.eva-cite::after {
  content: "i";
}

.eva-cite:hover,
.eva-cite:focus-visible {
  background: #e6efe4;
  border-color: #3a513c;
  outline: none;
}

.eva-cite:hover::before,
.eva-cite:focus-visible::before {
  content: attr(title);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 260px;
  max-width: 360px;
  background: #1f2a22;
  color: #fff;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1.35;
  text-align: left;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.24);
  z-index: 25;
  white-space: normal;
  pointer-events: none;
}

/* =========================================================
   SECONDARY BUTTON (your original — preserved)
========================================================= */

.btn-map.secondary-btn {
  background: #eef2e8;
  color: #405034;
  border: 1px solid #8fa57a;
  padding: 6px 14px;
  font-size: 0.9rem;
  border-radius: 6px;
  margin-top: 6px;
  display: inline-block;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  transition: all 0.25s ease;
}

.btn-map.secondary-btn:hover {
  background: #dce7cf;
  color: #2f3a28;
  border-color: #7d9665;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.10);
}

.btn-map.secondary-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

/* =========================================================
   RESPONSIVE (new)
========================================================= */

@media (max-width: 600px) {
  .eva-content {
    padding: 24px;
    margin: 40px 12px;
  }
  .eva-content h3 {
    font-size: 1.25rem;
  }
}

/* INTERACTIVE HOTSPOT TABLE */
.hotspot-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.05rem;
  background: #fff;
  box-shadow: 0 4px 18px rgba(0,0,0,0.07);
  border-radius: 12px;
  overflow: hidden;
}

.hotspot-table thead {
  background: var(--olive-dark);
  color: #fff;
}

.hotspot-table th,
.hotspot-table td {
  padding: 16px 20px;
  border-bottom: 1px solid #e9e9e9;
  text-align: left;
  vertical-align: top;
}

.hotspot-table tbody tr:last-child td {
  border-bottom: none;
}

/* Hover behavior */
.hotspot-table tbody tr {
  transition: background 0.25s ease, transform 0.2s ease;
}

.hotspot-table tbody tr:hover {
  background: #f3f7ef;
  transform: translateY(-2px);
}

/* Sortable headers */
.hotspot-table th {
  cursor: pointer;
  user-select: none;
  position: relative;
}

.hotspot-table th:hover {
  background: #2e3b35;
}

/* Optional arrow indicator */
.hotspot-table th.asc::after,
.hotspot-table th.desc::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
}

.hotspot-table th.asc::after {
  border-bottom: 8px solid #fff;
  transform: translateY(-30%);
}

.hotspot-table th.desc::after {
  border-top: 8px solid #fff;
  transform: translateY(-70%);
}

/* Section intro spacing */
.section-intro {
  margin-bottom: 32px;
  line-height: 1.65;
}

/* Encroachment page - wider two-card layout */
.encroachment-impact-grid {
  max-width: 1280px;
  width: 100%;
  margin: 40px auto 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 60px;
  padding: 0 6%;
}

/* Generic impact-grid for other uses */
.impact-grid {
  max-width: 1100px;
  margin: 40px auto 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px;
}

/* Encroachment page card styling */
.encroachment-impact-card {
  background: #ffffff;
  padding: 32px 38px;
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0,0,0,0.05);
  position: relative;
  overflow: hidden;
}

/* Generic card styling */
.impact-card {
  background: #ffffff;
  padding: 32px 38px;
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0,0,0,0.05);
  position: relative;
  overflow: hidden;
}

/* Subtle background imagery for encroachment cards */
.encroachment-impact-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 60%;
  background-size: cover;
  background-position: center;
  opacity: 0.13;
  pointer-events: none;
  z-index: 0;
}

/* Training card background */
.encroachment-impact-card:first-child::after {
  background-image: url('images/trainingreadiness.webp');
}

/* Habitat card background */
.encroachment-impact-card:last-child::after {
  background-image: url('images/habitatintegrity.jpg');
}

/* Generic background imagery for cards */
.impact-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 60%;
  background-size: cover;
  background-position: center;
  opacity: 0.13;
  pointer-events: none;
  z-index: 0;
}

/* Ensure content stays above background */
.encroachment-impact-card > * {
  position: relative;
  z-index: 1;
}

.impact-card > * {
  position: relative;
  z-index: 1;
}

/* Card headings underline for encroachment */
.encroachment-impact-card h3 {
  margin-bottom: 14px;
  position: relative;
}

.encroachment-impact-card h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 50px;
  height: 4px;
  background: var(--olive);
  border-radius: 2px;
}

/* Generic card headings underline */
.impact-card h3 {
  margin-bottom: 14px;
  position: relative;
}

.impact-card h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 50px;
  height: 4px;
  background: var(--olive);
  border-radius: 2px;
}

/* Responsive layout for encroachment */
@media (max-width: 820px) {
  .encroachment-impact-grid {
    grid-template-columns: 1fr;
    max-width: 600px;
  }
  
  .impact-grid {
    grid-template-columns: 1fr;
    max-width: 600px;
  }
}

/* Card title */
.impact-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--olive-dark);
  margin-bottom: 16px;
  position: relative;
}

/* Olive accent bar */
.impact-title::before {
  content: "";
  position: absolute;
  width: 40px;
  height: 4px;
  background: var(--olive);
  border-radius: 4px;
  bottom: 4px;
  left: 0;
}

/* Bullet refinement for encroachment */
.encroachment-impact-card ul.bullets li {
  margin-bottom: 10px;
}

/* Generic bullet refinement */
.impact-card ul.bullets li {
  margin-bottom: 10px;
}

/* Make Planning for Balance cards wider inside the normal container */
.planning-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;               /* Good spacing */
  margin-top: 30px;
}

/* Make cards fill their columns more fully */
.planning-card {
  background: #ffffff;
  padding: 28px 32px;
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.08);
}

/* HEADINGS WITH OLIVE BAR */
.planning-card h3 {
  margin-bottom: 14px;
  position: relative;
  font-weight: 600;
}

.planning-card h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 50px;
  height: 4px;
  background: var(--olive);
  border-radius: 2px;
}

/* Intro paragraph spacing */
.intro-paragraph {
  margin-bottom: 16px;
}

/* MOBILE LAYOUT */
@media (max-width: 820px) {
  .planning-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------------------------------------------------------
	 9. CASE STUDIES & IMPACT SECTIONS
--------------------------------------------------------- */
.case-study {
	background: #f9faf9;
	border: 1px solid #e6e9e6;
	border-radius: 12px;
	padding: 1.75em;
	margin: 2em 0;
	box-shadow: 0 3px 12px rgba(0,0,0,0.06);
}

.case-btn {
	background: linear-gradient(90deg,#70b458,#5ea046);
	color: #fff;
	border: none;
	font-weight: 600;
	padding: 0.9em 1.2em;
	border-radius: 8px;
	width: 100%;
	text-align: left;
	font-size: 1.05rem;
	letter-spacing: 0.3px;
	cursor: pointer;
	transition: all 0.25s ease;
}

.case-btn:hover {
	background: linear-gradient(90deg,#6ca850,#528c3b);
	transform: translateY(-1px);
}

.case-content {
	background: #fff;
	border-radius: 10px;
	padding: 1.5em;
	margin-top: 1em;
	border: 1px solid #ececec;
	line-height: 1.75;
	color: #2d2d2d;
	box-shadow: inset 0 0 10px rgba(0,0,0,0.03);
}

.impact-columns {
	display: flex;
	gap: 40px;
	flex-wrap: wrap;
}

.impact-box {
	flex: 1;
	min-width: 320px;
	background: #ffffff;
	border-radius: 12px;
	padding: 30px;
	box-shadow: 0 3px 14px rgba(0,0,0,0.08);
	border-top: 5px solid var(--olive);
	transition: box-shadow 0.3s ease;
}

.impact-box:hover {
	box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

/* ---------------------------------------------------------
	 10. PAGE NAV BUTTONS
--------------------------------------------------------- */
.page-nav-buttons {
	display: flex;
	justify-content: space-between;
	padding: 40px 6% 60px;
	background: var(--soft-gray);
}

.nav-btn {
	background: var(--olive-dark);
	color: white;
	text-decoration: none;
	font-weight: 600;
	padding: 12px 24px;
	border-radius: 10px;
	border: 2px solid var(--olive-dark);
	box-shadow: 0 2px 6px rgba(0,0,0,0.08);
	transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease, color 0.25s ease;
}

.nav-btn:hover {
	background: var(--olive);
	border-color: var(--olive);
	color: white;
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

/* ---------------------------------------------------------
	 11. ANIMATIONS & RESPONSIVE
--------------------------------------------------------- */
.fade-in {
	opacity: 0;
	transform: translateY(40px);
	transition: opacity 1s ease, transform 1s ease;
}

.fade-in.visible {
	opacity: 1;
	transform: translateY(0);
}

.story-section {
	opacity: 0;
	transform: translateY(60px);
	filter: blur(4px);
	transition: all 1s ease;
}

.story-section.visible {
	opacity: 1;
	transform: translateY(0);
	filter: none;
}

@media (max-width:900px) {
	.timeline {
		flex-direction: column-reverse;
		gap: 24px;
	}
	.sticky-map {
		position: static;
		height: 360px;
	}
	.intro-section {
		padding: 64px 4% 24px;
	}
	.site-header {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
		padding: 10px 4%;
	}
  .logo-link {
    margin: 0 auto;
  }
	.site-logo {
		height: 48px;
	}
  .main-nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .main-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 46px;
    padding: 10px 12px;
  }
	.background-flex {
		flex-direction: column;
	}
}

@media (max-width:480px) {
  .main-nav {
    grid-template-columns: 1fr;
  }
	.sticky-map {
		height: 260px;
	}
}

/* ---------------------------------------------------------
	 Dual-visuals, featured species, and accent headings
	 Shared styles moved from page-specific blocks so all
	 story pages can share the same visual treatments.
--------------------------------------------------------- */
.dual-visuals {
	margin: 3rem auto 4rem;
	max-width: 1250px;
	padding: 0 1rem;
	text-align: left;
}
.dual-visuals h3 {
	color: #22302a;
	font-size: 1.9rem;
	margin-bottom: 1.5rem;
	border-left: 6px solid #6b8e23;
	padding-left: 0.6rem;
	font-weight: 700;
}
.narrative {
	max-width: 100%;
	margin: 0 auto 2.5rem auto;
	color: #22302a;
	font-size: 1.08rem;
	line-height: 1.75;
}
.narrative p { margin-bottom: 1.2rem; }

.visuals-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 2rem;
	margin-bottom: 2.5rem;
}
.visual-card {
	position: relative;
	border-radius: 1rem;
	overflow: hidden;
	box-shadow: 0 10px 28px rgba(0,0,0,0.1);
	border: 3px solid rgba(107,142,35,0.25);
	background: #fff;
	height: 560px;
	transition: transform 0.3s ease;
	cursor: pointer;
}
.visual-card:hover { transform: scale(1.01); }
.timelapse-video, .map-image { width: 100%; height: 100%; object-fit: cover; display: block; }
.caption {
	background: rgba(34,48,42,0.88);
	color: #fff; font-size: 0.95rem;
	padding: 0.6rem 0.9rem;
	text-align: center; position: absolute; bottom: 0; width: 100%;
}
.map-label {
	position: absolute; top: 0.6rem; left: 0.6rem;
	background: rgba(211, 228, 188, 0.96);
	color: #22302a; font-weight: 600;
	font-size: 1rem; padding: 0.4rem 0.8rem;
	border-radius: 0.4rem; box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}
.expand-overlay {
	position: absolute;
	bottom: 2.3rem;
	right: 0.6rem;
	background: rgba(255,255,255,0.85);
	color: #22302a;
	font-size: 0.85rem;
	font-weight: 600;
	padding: 0.35rem 0.6rem;
	border-radius: 0.4rem;
	box-shadow: 0 2px 5px rgba(0,0,0,0.2);
	opacity: 0;
	transition: opacity 0.3s ease;
}
.visual-card:hover .expand-overlay { opacity: 1; }

.summary-box {
	background: linear-gradient(135deg, #ffffff 0%, #f0f4ed 100%);
	border-left: 8px solid transparent;
	border-image: linear-gradient(180deg, #6b8e23 0%, #8ab24f 100%) 1;
	border-radius: 1rem;
	padding: 2.5rem 3rem;
	max-width: 1200px;
	margin: 3rem auto;
	box-shadow: 0 10px 30px rgba(107, 142, 35, 0.12), 0 2px 8px rgba(0,0,0,0.06);
	position: relative;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.summary-box::before {
	content: '';
	position: absolute;
	left: -8px;
	top: 0;
	width: 8px;
	height: 100%;
	background: linear-gradient(180deg, #6b8e23 0%, #8ab24f 100%);
	box-shadow: 0 0 20px rgba(107, 142, 35, 0.3);
	border-radius: 1rem 0 0 1rem;
}

.summary-box:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 35px rgba(107, 142, 35, 0.18), 0 4px 12px rgba(0,0,0,0.08);
}

.summary-box h4 { 
	margin-top: 0; 
	color: #22302a; 
	font-size: 1.5rem; 
	margin-bottom: 1.2rem;
	font-weight: 700;
	letter-spacing: 0.3px;
	position: relative;
	padding-bottom: 0.8rem;
}

.summary-box h4::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: 0;
	width: 60px;
	height: 3px;
	background: linear-gradient(90deg, #6b8e23 0%, #8ab24f 100%);
	border-radius: 2px;
}

.summary-box p { 
	color: #2b3645; 
	font-size: 1.1rem; 
	line-height: 1.8; 
	margin-bottom: 1.2rem;
}

/* Featured species / flip card helpers */
.featured-species { margin: 2rem auto; max-width: 1200px; padding: 0 1rem; font-family: 'Roboto', sans-serif; }
.featured-species .lede { margin: .25rem 0 2rem; color: #475569; font-size: 1.05rem; text-align: center; }
.species-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.species-card { perspective: 1200px; }
.centered-species-card {
  grid-column: 1 / -1;
  justify-self: center;
  width: min(100%, 560px);
}
.flip { position: relative; width: 100%; border: none; background: transparent; padding: 0; cursor: pointer; height: 420px; }
.card-face { border-radius: 1rem; box-shadow: 0 10px 25px rgba(0,0,0,.08); height: 100%; width: 100%; overflow: hidden; backface-visibility: hidden; transform-style: preserve-3d; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.card-front { background-size: cover; background-position: center; display: flex; align-items: flex-end; justify-content: center; position: relative; }
.overlay.bottom-overlay { position: absolute; bottom: 0; width: 100%; background: rgba(255, 255, 255, 0.85); color: #111827; text-align: center; padding: 0.75rem 1rem; backdrop-filter: blur(5px); }
.species-name { margin: 0; font-size: 1.3rem; font-weight: 700; line-height: 1.4; }
.species-name .highlight { background-color: #d8eacc; padding: 0.25rem 0.5rem; border-radius: 0.4rem; }
.card-back { position: absolute; inset: 0; background: #fafafa; color: #1e293b; transform: rotateY(180deg); overflow-y: auto; display: flex; justify-content: center; align-items: flex-start; padding-top: 1rem; }
.flip[aria-expanded="true"] .card-front { transform: rotateY(180deg); }
.flip[aria-expanded="true"] .card-back { transform: rotateY(360deg); }
.card-content { padding: 1.75rem; max-width: 500px; text-align: left; }
.card-content h4 { margin-top: 1rem; margin-bottom: .4rem; font-size: 1.1rem; color: #22302a; font-weight: 700; border-bottom: 2px solid rgba(107,142,35,0.15); display: inline-block; }
.card-content ul { margin: .25rem 0 1rem 1.2rem; line-height: 1.55; color: #2b3645; font-size: 0.97rem; }
.card-content li { margin-bottom: .35rem; }

@media (max-width: 900px) {
	.visuals-grid { grid-template-columns: 1fr; }
	.visual-card { height: 480px; max-width: 650px; margin: 0 auto; }
	.species-grid { grid-template-columns: 1fr; }
	.flip { height: 400px; }
}

/* Accent heading helper for green-left-bar style used across story pages */
.accent-heading {
	color: #22302a;
	font-size: 1.9rem;
	font-weight: 700;
	padding-left: 0.6rem;
	margin-bottom: 1rem;
}

/* ---------------------------------------------------------
   12. SUMMARY (tabs aligned to site system)
--------------------------------------------------------- */

.summary-wrap{
	background: linear-gradient(90deg,#f6f7f9 78%,#f0f2ed 100%);
  border-radius: 14px;
  padding: 36px 44px;
	box-shadow: 0 3px 14px rgba(60,60,60,0.08);
  border: 1px solid #e5e7eb;
  max-width: 1500px;
  margin: 40px auto 0;
}

.summary-head h2{
  margin: 0 0 10px 0;
  font-size: 2rem;
  font-weight: 900;
  color: var(--olive-dark);
  letter-spacing: 0.3px;
}

.summary-intro{
  text-align: center;
  max-width: 1280px;
  margin: 0 auto 18px auto;
  font-size: 1.15rem;
  line-height: 1.65;
  color: #333;
  font-weight: 500;
}

.summary-instruction{
  text-align: center;
  max-width: 1280px;
  margin: 0 auto 30px auto;
  font-size: 0.98rem;
  line-height: 1.6;
  color: #666;
  font-weight: 400;
}

/* Tabs: match your button system (nav/timeline-case-btn vibe) */
.summary-tabs{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
  justify-content: center;
}

.sum-tab{
  background: rgba(107,142,35,0.12);
  border: 2px solid var(--olive);
  color: var(--olive-dark);
  border-radius: 10px;
  padding: 10px 16px;
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;

  transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease, color 0.25s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.sum-tab:hover{
  background: var(--olive);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.sum-tab.is-active{
  background: var(--olive-dark);
  color: #fff;
  border-color: var(--olive-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.14);
}

/* Panel: integrated with page gradient for cohesion */
.summary-panel{
  background: linear-gradient(135deg, #ffffff 0%, #fafbfa 100%);
  border-radius: 10px;
  padding: 28px 32px;
  border: 1px solid #e5e7e9;
  box-shadow: 0 3px 16px rgba(0,0,0,0.06);
  border-left: 5px solid var(--olive);
}

.summary-panel {
  display: none;
}

/* Remove accent stripe feature (we’re matching existing style) */
.summary-panel::before{ content: none; }

/* Content */
.sum-content{
  display: none;
  animation: sumFade 0.35s ease;
}

.sum-content.is-active{
  display: block;
}

@keyframes sumFade{
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.sum-kicker{
  font-size: 1rem;
  font-weight: 700;
  color: rgba(34,48,42,0.85);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.sum-content h3{
  margin: 0 0 14px 0;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--olive-dark);
  letter-spacing: 0.3px;
  line-height: 1.4;
}

.sum-content p{
  margin: 0 0 14px 0;
  font-size: 1.08rem;
  color: #333;
  line-height: 1.8;
  max-width: 1280px;
}

/* Chips: keep subtle, like your soft-gray system */
.sum-chips{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 6px 0 18px 0;
}

.chip{
  background: rgba(107,142,35,0.08);
  border: 1px solid rgba(107,142,35,0.25);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--olive-dark);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.chip:hover{
  background: rgba(107,142,35,0.15);
  border-color: rgba(107,142,35,0.4);
}

/* “Why this matters” box: same vibe as note/lead */
.why{
  background: #f9faf9;
  border-left: 5px solid var(--olive);
  border-radius: 10px;
  padding: 14px 16px;
  margin-top: 8px;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.03);
}

/* CTA - styled as button for consistency */
.sum-cta{
  display: block;
  margin: 12px auto 0;
  padding: 10px 20px;
  font-weight: 700;
  font-size: 1.02rem;
  color: white;
  background: var(--olive);
  border: 2px solid var(--olive);
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
  text-align: center;
  width: fit-content;
}

.sum-cta:hover{
  background: var(--olive-dark);
  border-color: var(--olive-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

/* Responsive alignment to your existing breakpoint */
@media (max-width: 900px){
  .summary-wrap{ padding: 28px 24px; }
  .summary-panel{ padding: 20px 22px; }
}

/* Collapsible Executive Summary header - matches nav button style */
.summary-toggle{
  width: 100%;
  background: rgba(255,255,255,0.98);
  border: 2px solid var(--olive);
  border-radius: 10px;
  padding: 18px 24px;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: space-between;

  box-shadow: 0 3px 14px rgba(60,60,60,0.08);
  transition: transform 0.2s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.summary-toggle:hover{
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(60,60,60,0.12);
  border-color: var(--olive-dark);
}

.summary-toggle-title{
  font-size: 1.8rem;                 /* matches .background-title / section headers */
  font-weight: 900;
  color: var(--olive-dark);
  letter-spacing: 0.3px;
  font-family: 'Roboto', sans-serif;
}

.summary-toggle-icon{
  font-size: 1.4rem;
  color: var(--olive-dark);
  transition: transform 0.25s ease;
}

/* Rotate icon when open */
.summary-toggle[aria-expanded="true"] .summary-toggle-icon{
  transform: rotate(180deg);
}

/* Add spacing between header + content when expanded */
.summary-collapsible{
  margin-top: 18px;
}

/* Add visual divider between sections */
#backgroundSection {
  padding-bottom: 0px; 
  position: relative;
}

#backgroundSection::after {
  content: '';
  position: absolute;
  bottom: -21.5px;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: 120px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--olive), transparent);
  border-radius: 2px;
}

#summary.section {
  padding-top: 40px; 
}

/* Align Executive Summary width with Introduction section */
#summary .container {
  max-width: 1500px;      /* match your background section width */
  margin: 0 auto;
  padding-left: 0;
  padding-right: 0;
}

#summary .summary-wrap {
  width: 100%;
}

/* ---------------------------------------------------------
   EXTREME WEATHER PAGE STYLES
--------------------------------------------------------- */

/* County Map Toggle Styles */
.map-container {
  width: 95%;
  max-width: 1400px;
  margin: 2rem auto;
  text-align: center;
}

.map-layer-buttons.county-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.map-layer-buttons.county-buttons button {
  background: rgba(107,142,35,0.12);
  border: 2px solid var(--olive);
  color: var(--olive-dark);
  border-radius: 10px;
  padding: 10px 16px;
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease, color 0.25s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.map-layer-buttons.county-buttons button:hover {
  background: var(--olive);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.map-layer-buttons.county-buttons button.active {
  background: var(--olive-dark);
  color: #fff;
  border-color: var(--olive-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.14);
}

.county-map {
  display: none;
  width: 100%;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
}

.county-map.active {
  display: block;
  opacity: 1;
}

.county-image {
  width: 100%;
  max-width: 1200px;
  border-radius: 0.75rem;
  box-shadow: 0 5px 25px rgba(0,0,0,0.1);
}

.dashboard-description {
  max-width: 1100px;
  margin: 2rem auto 3rem;
  background: #f9fafb;
  border-left: 4px solid #6b8e23;
  border-radius: 0.75rem;
  padding: 1.75rem 2rem;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.dashboard-description ul {
  margin: 1rem 0 1.25rem 1.5rem;
  line-height: 1.65;
  color: #2b3645;
}

.dashboard-description li strong {
  color: #22302a;
}

/* Dashboard Container Styles */
.dashboard-container {
  width: 95%;
  max-width: 1400px;
  margin: 2rem auto;
}

.dashboard-description h4 {
  color: #22302a;
  margin-top: 1.5rem;
  font-size: 1.15rem;
  font-weight: 700;
}

.dashboard-description p {
  color: #2b3645;
  line-height: 1.7;
}

/* Case Study Styles */
.interactive-section {
  max-width: 1400px;
  width: 90%;
  margin: 3rem auto;
  font-family: 'Roboto', sans-serif;
  text-align: left;
}

.interactive-section h2 {
  text-align: left;
  margin-left: 1rem;
  font-size: 2rem;
  color: #22302a;
  margin-bottom: 2rem;
  font-weight: 700;
}

.case-study {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 5px 25px rgba(0,0,0,0.08);
  margin-bottom: 2rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

.case-btn {
  background: #6b8e23;
  color: #fff;
  width: 100%;
  text-align: left;
  padding: 1.2rem 1.5rem;
  font-size: 1.15rem;
  font-weight: 600;
  border: none;
  border-radius: 1rem 1rem 0 0;
  cursor: pointer;
  transition: background 0.3s ease;
}

.case-btn:hover {
  background: #55751b;
}

.case-btn[aria-expanded="true"] {
  background: #3e5713;
}

.case-content {
  display: none;
  padding: 1.75rem 2rem 2rem;
  background: #f9fafb;
  border-top: 2px solid rgba(107,142,35,0.25);
  animation: fadeIn 0.3s ease;
}

.case-content p {
  margin-bottom: 1rem;
  color: #2b3645;
  line-height: 1.7;
  max-width: 1200px;
}

.case-img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: 0.5rem;
  margin-top: 1.25rem;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

@keyframes fadeIn {
  from {opacity: 0;}
  to {opacity: 1;}
}

/* Implications Section Styles */
.implications {
  max-width: 1000px;
  margin: 4rem auto;
  text-align: left;
  color: #2b3645;
}

.implications h2 {
  text-align: center;
  color: #22302a;
  font-size: 2rem;
  margin-bottom: 2rem;
  font-weight: 700;
}

/* Extreme Weather specific impact boxes (3-column grid) */
.section-alt .impact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  max-width: 1200px;
  margin: 3rem auto;
}

@media (min-width: 992px) {
  .section-alt .impact-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

/* Keep impact-box styling for extreme weather page */
.impact-box {
  position: relative;
  background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
  border-radius: 1rem;
  padding: 2.5rem 2rem 2rem;
  box-shadow: 0 8px 30px rgba(107, 142, 35, 0.08);
  border-top: 4px solid #6b8e23;
  transition: all 0.3s ease;
}

.impact-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(107, 142, 35, 0.15);
}

.card-number {
  position: absolute;
  top: -15px;
  left: 2rem;
  background: linear-gradient(135deg, #6b8e23 0%, #8ab24f 100%);
  color: white;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 4px 12px rgba(107, 142, 35, 0.3);
}

.impact-box h4 {
  color: #22302a;
  font-size: 1.25rem;
  margin-bottom: 1rem;
  font-weight: 700;
  line-height: 1.3;
  padding-top: 0.5rem;
}

.impact-box p {
  line-height: 1.7;
  color: #2b3645;
  margin: 0;
  font-size: 0.95rem;
}

@media (max-width: 991px) {
  .impact-box {
    padding: 2rem 1.75rem 1.75rem;
  }
  
  .card-number {
    width: 42px;
    height: 42px;
    font-size: 1rem;
  }
  
  .impact-card h4 {
    font-size: 1.15rem;
  }
}

.impact-box {
  position: relative;
  background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
  border-radius: 1rem;
  padding: 2.5rem 2rem 2rem;
  box-shadow: 0 8px 30px rgba(107, 142, 35, 0.08);
  border-top: 4px solid #6b8e23;
  transition: all 0.3s ease;
}

.impact-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(107, 142, 35, 0.15);
}

.impact-box h4 {
  color: #22302a;
  font-size: 1.25rem;
  margin-bottom: 1rem;
  font-weight: 700;
  line-height: 1.3;
}

.impact-box p {
  line-height: 1.7;
  color: #2b3645;
  margin: 0;
  font-size: 0.95rem;
}
