/* ============================================================
   Cape Epic 2026 — Main Stylesheet
   ============================================================ */

/* Base
   ============================================================ */
* {
	box-sizing: border-box;
}

body {
	font-family: Georgia, 'Times New Roman', serif;
	max-width: 1024px;
	margin: 2rem auto;
	padding: 0 1.5rem 4rem;
	line-height: 1.8;
	color: #1a1a1a;
	background: #fff;
}

p {
	margin: 0 0 1rem;
}

h1 {
	font-size: 2.8rem;
	color: #fff;
	margin: 0 0 0.4rem;
	letter-spacing: -0.5px;
}

h2 {
	font-size: 1.25rem;
	color: #c00;
	border-bottom: 1px solid #ddd;
	padding-bottom: 0.4rem;
	margin: 0 0 1.25rem;
}

/* Sponsor bar
   ============================================================ */
.sponsor-bar {
	width: 100vw;
	position: relative;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 2.5rem;
	padding: 1rem 2rem;
	background: #fff;
	border-bottom: 1px solid #e0e0e0;
}

.sponsor-logo {
	height: 56px;
	width: auto;
	object-fit: contain;
}

.sponsor-logo--featured {
	height: 150px;
}

/* Hero header
   ============================================================ */
header {
	position: relative;
	width: 100vw;
	left: 50%;
	transform: translateX(-50%);
	background-image: url('images/banner.jpg');
	background-size: cover;
	background-position: center;
	text-align: center;
	padding: 6rem 2rem;
	margin-bottom: 3rem;
}

header .hero-content {
	position: relative;
	z-index: 1;
}

header .subtitle {
	font-style: italic;
	color: rgba(255, 255, 255, 0.85);
	margin: 0;
	font-size: 1.1rem;
}

/* Sections & images
   ============================================================ */
section {
	margin-bottom: 3rem;
	overflow: hidden; /* contain floated images */
}

.section-img {
	display: block;
	width: 50%;
	height: auto;
	margin-bottom: 1rem;
}

.section-img.float-left {
	float: left;
	margin-right: 1.5rem;
}

.section-img.float-right {
	float: right;
	margin-left: 1.5rem;
}

.section-img.float-center {
	margin-left: auto;
	margin-right: auto;	
	min-width: 80%;
	max-width:100%;
	
}


    
.section-callout {
	display: block;
	width: 25%;
	height: auto;
	margin-bottom: 1rem;
  
  background: #faeded;
	border-left: 4px solid #c00;
  padding: 1rem 1.1rem;
}

.section-callout.float-left {
	float: left;
	margin-right: 1.5rem;
}

.section-callout.float-right {
	float: right;
	margin-left: 1.5rem;
}


/* Quotes
   ============================================================ */
.quotes {
	display: flex;
	gap: 1rem;
	margin-top: 1.5rem;
}

.pullquote {
	flex: 1;
	padding: 1rem 1.1rem;
	background: #f0f7f7;
	border-left: 4px solid #007070;
	font-style: italic;
	font-size: 0.875rem;
	line-height: 1.65;
}

.pullquote .attribution {
	display: block;
	font-weight: bold;
	font-style: normal;
	color: #007070;
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 0.3rem;
}

/* Blockquote (extended self-quotation)
   ============================================================ */
blockquote {
	margin: 0.5rem 0 1rem;
	padding: 1rem 1.5rem;
	background: #f5f5f3;
	border-left: 3px solid #aaa;
	font-style: italic;
	font-size: 0.95rem;
}

blockquote p {
	margin: 0 0 0.75rem;
}

blockquote p:last-child {
	margin: 0;
}

/* Links
   ============================================================ */
a.foundation-link {
	color: #c00;
	text-decoration: none;
	border-bottom: 1px solid #c00;
	font-style: italic;
	transition: color 0.2s, border-color 0.2s;
}

a.foundation-link:hover {
	color: #007070;
	border-color: #007070;
}

/* Media reference block
   ============================================================ */
a.media-ref {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-top: 1.5rem;
	padding: 0.9rem 1.25rem;
	border: 1px solid #ddd;
	border-left: 5px solid #1a1a1a;
	text-decoration: none;
	color: inherit;
	background: #fafafa;
	transition: border-color 0.2s, background 0.2s;
}

a.media-ref:hover {
	border-left-color: #c00;
	background: #fff6f6;
}

.media-ref-logo {
	height: 36px;
	width: auto;
	flex-shrink: 0;
	object-fit: contain;
}

.media-ref-body {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
}

.media-ref-label {
	font-size: 0.7rem;
	text-transform: uppercase;
	letter-spacing: 0.6px;
	color: #c00;
	font-style: normal;
	font-family: Georgia, serif;
}

.media-ref-title {
	font-size: 0.95rem;
	font-weight: bold;
	color: #1a1a1a;
	line-height: 1.3;
}

.media-ref-source {
	font-size: 0.8rem;
	color: #666;
	font-style: italic;
}

/* Anna Foundation callout
   ============================================================ */
.anna-callout {
	display: flex;
	gap: 1.5rem;
	align-items: flex-start;
	margin-top: 1.5rem;
	padding: 1.5rem;
	background: #fffdf0;
	border: 2px solid #f0c030;
	border-left: 6px solid #f0c030;
	border-radius: 4px;
}

.anna-logo {
	width: 120px;
	flex-shrink: 0;
	object-fit: contain;
}

.anna-callout-body p {
	margin: 0 0 0.75rem;
	font-size: 0.95rem;
	line-height: 1.7;
}

.anna-callout-body p:last-of-type {
	margin-bottom: 1rem;
}

.anna-donate-btn {
	display: inline-block;
	padding: 0.55rem 1.25rem;
	background: #c00;
	color: #fff;
	text-decoration: none;
	font-style: normal;
	font-size: 0.9rem;
	font-family: Georgia, serif;
	letter-spacing: 0.3px;
	border-radius: 3px;
	transition: background 0.2s;
}

.anna-donate-btn:hover {
	background: #a00;
}

/* Author note
   ============================================================ */
.author-note {
	max-width: 1024px;
	margin: 0 auto 2.5rem;
	padding: 1.5rem 1.75rem;
	border: 1px solid #ddd;
	border-left: 5px solid #007070;
	background: #f5fbfb;
	font-size: 0.95rem;
	line-height: 1.75;
	color: #333;
}

.author-note p {
	margin: 0 0 0.85rem;
}

.author-note p:last-of-type {
	margin-bottom: 1.25rem;
}

.author-note-audio {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.author-note-audio-label {
	font-style: italic;
	font-size: 0.875rem;
	color: #007070;
	font-weight: bold;
}

.author-note-audio audio {
	width: 100%;
}

/* Carousel
   ============================================================ */
.carousel {
	position: relative;
	max-width: 1024px;
	margin: 0 auto 4rem;
	overflow: hidden;
}

.carousel-track {
	position: relative;
	height: 480px;
}

.carousel-slide {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	transition: opacity 0.8s ease;
}

.carousel-slide.active {
	opacity: 1;
}

.carousel-btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(0, 0, 0, 0.4);
	color: #fff;
	border: none;
	font-size: 2.5rem;
	line-height: 1;
	padding: 0.2rem 0.7rem 0.3rem;
	cursor: pointer;
	z-index: 2;
	transition: background 0.2s;
}

.carousel-btn:hover {
	background: rgba(0, 0, 0, 0.7);
}

.carousel-btn.prev { left: 0.5rem; }
.carousel-btn.next { right: 0.5rem; }

.carousel-dots {
	position: absolute;
	bottom: 0.75rem;
	width: 100%;
	text-align: center;
	z-index: 2;
}

.dot {
	display: inline-block;
	width: 10px;
	height: 10px;
	margin: 0 4px;
	background: rgba(255, 255, 255, 0.5);
	border-radius: 50%;
	cursor: pointer;
	transition: background 0.3s;
}

.dot.active {
	background: #fff;
}

/* Thank yous
   ============================================================ */
.thankyous {
	max-width: 1024px;
	margin: 0 auto 4rem;
	padding: 0 1.5rem;
}

.thankyous > h2 {
	font-size: 1.6rem;
	color: #c00;
	border-bottom: 3px solid #c00;
	padding-bottom: 0.4rem;
	margin: 0 0 2rem;
}

.thankyous h3 {
	font-size: 1.15rem;
	color: #444;
	border-bottom: 1px solid #ddd;
	padding-bottom: 0.3rem;
	margin: 2rem 0 1.25rem;
}

.thanks-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.thanks-entry {
	display: flex;
	align-items: flex-start;
	gap: 1.25rem;
	padding: 1rem;
	background: #faf8f4;
	border-left: 4px solid #c00;
}

.thanks-thumb {
	width: 72px;
	height: 72px;
	object-fit: cover;
	border-radius: 50%;
	flex-shrink: 0;
}

.thanks-body strong {
	display: block;
	font-size: 1rem;
	margin-bottom: 0.25rem;
	color: #1a1a1a;
}

.thanks-body p {
	margin: 0;
	font-size: 0.9rem;
	line-height: 1.6;
	color: #444;
}

.certificate {
	width: 50%;
	height: auto;
	border-width: 1px;
	border-style: solid;
}

/* Responsive
   ============================================================ */
@media (max-width: 600px) {
	h1 { font-size: 2rem; }

	.sponsor-bar { gap: 1.25rem; padding: 0.75rem 1rem; }
	.sponsor-logo { height: 36px; }
	.sponsor-logo--featured { height: 72px; }

	.section-img {
		float: none;
		width: 100%;
		margin: 0 0 1rem;
	}

	.section-callout {
		float: none;
		width: 100%;
		margin: 0 0 1rem;
	}

	.quotes { flex-direction: column; }

	.anna-callout {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}

	a.media-ref {
		flex-direction: column;
		align-items: flex-start;
	}

	.media-ref-logo {
		width: 100%;
		height: auto;
		max-height: 48px;
		object-fit: contain;
		object-position: left;
	}

	.carousel-track { height: 240px; }

	.thanks-entry {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}
		
	.certificate {
		width: 100%;
	}

	
    .leadership-lessons {
      margin: 0;
      padding-left: 1.25rem;
      counter-reset: lesson;
      line-height: 1.5;
    }

    .leadership-lessons li {
      margin-bottom: 1.25rem;
      padding-left: 0.25rem;
    }

    .leadership-lessons li h3 {
      font-size: 1.1rem;
      margin: 0 0 0.4rem;
    }

    .leadership-lessons li p {
      margin: 0.25rem 0;
    }
}
