/* Page-wide basic reset (Feel free to delete if it's breaking things) */
* {
	box-sizing: border-box;
} 

.motto {
	text-align: center;
	font-size: clamp(2.2rem, 2vw, 1.8rem);
	font-weight: 600;
	color: white;
	margin: 50px 0;
	padding: 0 20px;
	line-height: 1.6;
	letter-spacing: 0.3px;
	font-family: var(--heading-font);
}

.get-started-block {
	display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #f3ebd8;
    height: 550px;
}
.get-started-block h2 {
	margin-top: 40px;
	font-size: 2em;
	font-weight: bold;
}
.about-founders-section {
	background:
		radial-gradient(circle at 18% 14%, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0) 35%),
		linear-gradient(120deg, #efe4c8 0%, #e2cf9f 100%);
	padding: 56px 0;
}
.about-founders-div {
	display: grid;
	grid-template-columns: 1fr 1fr;
	width: 80%;
	margin: 0 auto;
	align-items: center;
	column-gap: 40px;
	max-width: 1100px;
	background-color: rgba(255, 255, 255, 0.44);
	backdrop-filter: blur(2px);
	border: 1px solid rgba(97, 68, 15, 0.18);
	border-radius: 20px;
	padding: 34px;
	box-shadow: 0 20px 35px rgba(51, 40, 12, 0.16);
}
.about-founders {
	grid-row: 1 / 3;
	grid-column: 2 / 3;
	justify-self: end;
}
.about-founders img{
	width: min(100%, 430px);
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 16px;
	border: 2px solid rgba(255, 255, 255, 0.9);
	box-shadow: 0 14px 24px rgba(0, 0, 0, 0.22);
}
.about-description {
	align-self: center;
	padding: 0;
}

.about-description h2 {
	margin: 0 0 14px;
	font-size: clamp(1.7rem, 2.3vw, 2.4rem);
	line-height: 1.2;
	color: #1f1a0d;
}

.about-description p {
	margin: 0;
	font-size: 1.04rem;
	line-height: 1.65;
	color: #423516;
	max-width: 58ch;
}

.about-button {
	align-self: start;
	padding: 20px 0 0;
}

.about-button .cta-button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 22px;
	border-radius: 999px;
	font-weight: 700;
	text-decoration: none;
	background: #088ac2;
	color: #fff;
	box-shadow: 0 8px 15px rgba(20, 56, 33, 0.35);
	transition:
		transform 0.2s ease,
		box-shadow 0.2s ease,
		background-color 0.2s ease;
}

.about-button .cta-button:hover,
.about-button .cta-button:focus-visible {
	background: #0498d5;
	transform: translateY(-2px);
	box-shadow: 0 12px 20px rgba(20, 56, 33, 0.38);
}

@media (max-width: 900px) {
	.about-founders-div {
		grid-template-columns: 1fr;
		row-gap: 24px;
		width: min(92%, 560px);
		padding: 24px;
	}

	.about-founders {
		grid-row: auto;
		grid-column: 1;
		justify-self: center;
	}

	.about-description,
	.about-button {
		grid-column: 1;
	}
}
.sponsor-logos {
	background-color: #f3ebd8;
}

/* Basic Reset and Container Setup */
.carousel-container {
	max-width: 100%;
	margin: 40px auto;
	overflow: hidden;
	position: relative;
	border: 1px solid #ddd;
	box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
	background-color: white;
}

/* Track holds all slides and is moved by JavaScript */
.carousel-track {
	display: flex;
	transition: transform 0.5s ease-in-out; /* Smoother sliding transition */
}

/* Individual Slide Styling */
.carousel-slide {
	min-width: 100%;
	box-sizing: border-box;
	padding: 20px 40px;
	text-align: center;
	height: 80vh;
	position: relative;
	overflow: hidden;
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-template-rows: 1fr 1fr;
}

.carousel-slide::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(30deg, rgba(0, 0, 0, 0.34) 18%, rgba(0, 0, 0, 0.08) 66%);
	z-index: 2;
}

.video-slide::before {
	background: linear-gradient(30deg, rgba(6, 44, 61, 0.32) 10%, rgba(6, 44, 61, 0.08) 70%);
}
/* The Video Layer */
.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Lowest layer */
    pointer-events: none; /* User clicks "pass through" to the buttons */
}

.video-background iframe {
    width: 100vw;
    height: 56.25vw; /* Maintain 16:9 ratio */
    min-height: 100%;
    min-width: 177.77vh; /* Scale to cover area */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.carousel-slide:nth-child(2) {
	background: url(../../images/hero1.jpg);
	background-size: cover;
}
.carousel-slide:nth-child(3) {
	background: url(../../images/hero2.jpg);
	background-size: cover;
}
.carousel-slide:nth-child(4) {
	background: url(../../images/hero3.jpg);
	background-size: cover;
}
.slide-content {
	position: relative;
	z-index: 3;
	grid-row: 2 / 3;
	align-self: end;
	max-width: 420px;
	text-align: left;
	padding: 24px 24px 22px;
	border-radius: 16px;
	border-left: 4px solid var(--text-on-dark);
	background: linear-gradient(145deg, rgba(4, 152, 213, 0.82), rgba(8, 138, 194, 0.88));
	box-shadow: 0 14px 28px rgba(0, 0, 0, 0.35);
}

.slide-content h3 {
	margin: 0 0 12px;
	font-family: var(--heading-font);
	font-size: clamp(1.2rem, 2vw, 1.8rem);
	line-height: 1.2;
	color: #fff;
}

.slide-content p {
	color: rgba(255, 255, 255, 0.95);
	margin: 0 0 20px;
	font-size: 1rem;
	line-height: 1.55;
}

.carousel-slide .card-btn {
	background-color: var(--text-on-dark);
	color: #122718;
	padding: 11px 20px;
	border: 2px solid transparent;
	border-radius: 999px;
	font-family: var(--paragraph-font);
	font-weight: 700;
	letter-spacing: 0.02em;
	transition:
		transform 0.2s ease,
		background-color 0.2s ease,
		color 0.2s ease,
		border-color 0.2s ease;
}

.carousel-slide .card-btn:hover,
.carousel-slide .card-btn:focus-visible {
	background-color: transparent;
	color: #fff;
	border-color: #fff;
	transform: translateY(-2px);
}

@media (max-width: 900px) {
	.carousel-slide {
		padding: 32px 18px;
		height: 68vh;
		grid-template-columns: 1fr;
	}

	.slide-content {
		grid-column: 1;
		grid-row: 2;
		max-width: min(100%, 520px);
		justify-self: center;
	}
}

@media (max-width: 540px) {
	.carousel-slide {
		height: 76vh;
	}

	.slide-content {
		padding: 20px;
		border-left-width: 3px;
	}

	.slide-content p {
		font-size: 0.95rem;
	}
}
/* CTA Button Styling */
/* .cta-button {
	display: inline-block;
	padding: 15px 30px;
	background-color: #007bff;
	color: white;
	text-decoration: none;
	border-radius: 50px;
	font-weight: bold;
	font-size: 1em;
	transition:
		background-color 0.3s,
		transform 0.1s;
}

.cta-button:hover {
	background-color: #0056b3;
	transform: translateY(-2px);
} */

/* Navigation Button Styling (Arrows) */
.prev-button,
.next-button {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(0, 0, 0, 0.5);
	color: white;
	border: none;
	padding: 15px 10px;
	cursor: pointer;
	z-index: 10;
	font-size: 1.2em;
	border-radius: 5px;
	opacity: 0.7;
	transition: opacity 0.3s;
}

.prev-button:hover,
.next-button:hover {
	opacity: 1;
}
.prev-button {
	left: 10px;
}
.next-button {
	right: 10px;
}

/* Indicator Styling (Dots) */
.carousel-indicators {
	text-align: center;
	padding: 8px 0;
	background-color: #fcfcfc;
	border-top: 1px solid #eee;
}

.indicator-dot {
	height: 10px;
	width: 10px;
	margin: 0 6px;
	background-color: #bbb;
	border-radius: 50%;
	display: inline-block;
	cursor: pointer;
	transition: background-color 0.3s;
}

.indicator-dot.active {
	background-color: #007bff;
	transform: scale(1.2);
}

.popup-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: rgba(0, 0, 0, 0.7);
	display: none;
	justify-content: center;
	align-items: center;
	z-index: 9999;
}

.popup-content {
	background-color: #6b8361;
	padding: 2rem;
	border-radius: 10px;
	max-width: 90vw;
	max-height: 90vh;
	overflow: auto;
}

.popup-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: rgba(0, 0, 0, 0.7);
	display: none;
	justify-content: center;
	align-items: center;
	z-index: 9999;
}

.popup-content {
	background-color: #6b8361;
	padding: 2rem;
	border-radius: 10px;
	max-width: 90vw;
	max-height: 90vh;
	overflow: auto;
}

.section-header {
	text-align: center;
	font-size: 2em;
	font-weight: bold; 
}

/* --- Sponsor Logos --- */
#sponsor-grid {
	display: grid;
	width: 80vw;
	margin: auto;
	grid-template-columns: repeat(5, 1fr);
	grid-gap: 20px;
}

.sponsor-img-link {
	width: 100%;
	aspect-ratio: 1/1;
	padding: 0;
}

.sponsor-img {
	display: block;
	max-width: 100%;
	max-height: 100%;
	margin: auto;
}

.card-container {
	width: 320px;
	background: white;
	border-radius: 12px;
	overflow: hidden; /* Ensures image doesn't bleed over corners */
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
	transition: transform 0.3s ease;
	border: 1px solid #eee;
}

.card-container:hover {
	transform: translateY(-10px);
}

.card-image {
	width: 100%;
	height: 200px;
	object-fit: cover;
	display: block;
}

.card-content {
	padding: 24px;
}

.card-title {
	margin: 0 0 12px 0;
	font-size: 1.4em;
	color: #333;
}

.card-description {
	font-size: 0.95em;
	color: #555;
	line-height: 1.5;
	margin-bottom: 25px;
}

/* Common Button Styling */
.card-btn {
		background-color: #007bff;
	color: white;
	padding: 10px 20px;
	border: none;
	border-radius: 6px;
	font-weight: bold;
	cursor: pointer;
	text-decoration: none;
	display: inline-block;
	transition: opacity 0.3s;
}
