/* ===============================
	INTRO SECTION
================================ */
#intro-section {
	background: linear-gradient(135deg, #3498DB, #5dade2);
	padding: 2rem 0;
}

.intro-container {
	width: 90%;
	max-width: 1250px;
	margin: auto;
	padding: 5rem 0;
}

.intro-container img {
	width: 100%;
	height: auto;
	margin-top: 2rem;
	border-radius: 5px;
	border: 1px solid rgba(0, 0, 0, 0.05); /* very faint border */
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08); /* soft shadow */
}

.intro-container h1 {
	color: #fff;
	text-align: center;
}

/* --------------------------------
	ADJUSTING FOR SMALLER SCREENS
---------------------------------- */
@media(max-width: 800px) {
	#intro-section {
		padding: 1rem 0;
	}

	.intro-container {
		padding: 3rem 0 2.5;
		text-align: center;
	}

	.intro-container .row {
		align-items: center;
		gap: 1rem;
	}
}

/* ===============================
	INTRO SECTION
================================ */
#slides-section {
	background: linear-gradient(135deg, #e4ecf2, #d5dfe7);
	padding: 2rem 0;
}

.slides-container {
	width: 90%;
	max-width: 1250px;
	margin: auto;
	padding: 5rem 0;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.slides-container h2 {
	text-align: center;
	margin-bottom: 1rem;
}

.slides-container a {
	margin-top: 2rem;
	text-decoration: none;
}


/* ===============================
	MENTOR SECTION
================================ */
#mentor-section {
	width: 90%;
	max-width: 1250px;
	margin: auto;
	padding: 5rem 0 2rem;
}

#mentor-section .row {
	gap: 3rem;
	align-items: center;
	margin: 3rem 0;
}

.mentor-col {
	flex: 1;				/* each takes equal space by default */
	min-width: 0;			/* prevents overflow issues with flex */
	margin: 0;
}

#mentor-section h2 {
	white-space: normal;
	margin-bottom: 1.5rem;
}

#mentor-section p {
	line-height: 2;
}

/* --------------------------------
	CAROUSEL(REUSE SOME FROM STYLE.CSS)
---------------------------------- */
.carousel {
	grid-auto-columns: 100%; /* one card per slide */
}

.card img {
	aspect-ratio: 5 / 4;
}

.card {
	border: none;
	box-shadow: none;
}

/* video in carousel */
.thumbnail { /* icon needs for positioning */
	position: relative;
	display: inline-block;
}

.thumbnail img {
	border: 1px solid rgba(0, 0, 0, 0.05); /* very faint border */
	box-shadow: 0 3px 3px rgba(0, 0, 0, 0.08); /* soft shadow */
}

.thumbnail i {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	color: #fff;
	pointer-events: none;
	width: 80px; 	/* making perfect circle */
	height: 80px; 	/* making perfect circle */
	background: linear-gradient(135deg, #3498DB, #5dade2);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 2rem;
	transition: transform 0.3s ease;
}

.thumbnail:hover i { /* make play circle scale slightly bigger when hovered over */
	transform: translate(-50%, -50%) scale(1.2);
}

/* --------------------------------
	POPUP
---------------------------------- */
.video-popup {
	display: none;
	position: fixed;
	top: 0; left: 0;
	width: 100%; height: 100%;
	background: rgba(0, 0, 0, 0.85);
	justify-content: center;
	align-items: center;
	z-index: 1000;
}

.video-popup-content {
	position: relative;
	width: 90%;
	max-width: 900px;
	aspect-ratio: 16 / 9;
	background: #000;
	border-radius: 5px;
	overflow: hidden;
}

.video-popup iframe {
	width: 100%;
	height: 100%;
	border: none;
}

.video-popup .close {
	position: absolute;
	top: 2rem;
	right: 4rem;
	color: white;
	font-size: 3rem;
	font-weight: bold;
	cursor: pointer;
	z-index: 1001; /* ensure above iframe */
}

/* --------------------------------
	ADJUSTING FOR SMALLER SCREENS
---------------------------------- */
@media (max-width: 800px) {
	#activities-section { 
		padding-top: 2rem; 
	} 

	.carousel {
		grid-auto-columns: 100%; /* 1 per slide */
	}

	.video-popup .close {
		top: 6rem;
		right: 2.5rem;
	}
}

/* ===============================
	MENTOR SECTION
================================ */
/* to fix the arrows not working on mobile version */
#mentor-section i {
	z-index: 100;
}

/* --------------------------------
	ADJUSTING FOR SMALLER SCREENS
---------------------------------- */
@media(max-width: 800px) {
	#mentor-section {
		padding-top: 3.5rem;
	}
}

/* ===============================
	PEOPLE SECTION
================================ */
#people-section {
	width: 90%;
	max-width: 1250px;
	margin: auto;
	padding: 3rem 0 10rem;
}

#people-section h2 {
	text-align: center;
	margin-bottom: 2rem;
}

.members-card {
	background: linear-gradient(135deg, #e4ecf2, #d5dfe7);
	border-radius: 5px;
	padding: 3rem 0 2rem;
	flex: 1;
	text-align: center;
	margin: 0.7rem;
}

.members-card img {
	width: 50%;
	height: auto;
	aspect-ratio: 1/1;
	object-fit: cover;
	border-radius: 5px;
}

#people-section h3 {
	margin-bottom: 1rem;
	font-size: clamp(1.25rem, 2vw, 1.7rem);
}

#people-section p {
	margin-top: 1rem;
}

.mobile-only {
	display: none;
}

.sponsor-desktop {
	display: flex;
	align-items: center;      /* vertical centering */
	justify-content: center;  /* horizontal centering */
	gap: 2rem;                /* space between image and text */
	margin: 0.7rem;
	padding: 3rem 0 3rem;
	text-align: left;       /* center text inside .sponsor-text */
}

.sponsor-desktop img {
	width: 40%;
	aspect-ratio: 3/2;
}



@media(max-width: 800px) {
	.mobile-only {
		display: block;
	}

	.sponsor-desktop {
		display: none;
	}

	.people-col h3 {
		font-size: clamp(1.5rem, 3vw, 2rem);
	}

	.people-col p {
		font-size: clamp(1.25rem, 2vw, 1.7rem);
	}

	.sponsor img {
		margin: 0;
	}
}


/* ===============================
	MORE SECTION
================================ */
#more-section {
	width: 90%;
	max-width: 1250px;
	margin: auto;
	padding: 3rem 0 10rem;
}

/* assigns name to each grid item for layout purposes */
.grid-container > :nth-child(1) { grid-area: one; }
.grid-container > :nth-child(2) { grid-area: two; }
.grid-container > :nth-child(3) { grid-area: three; }
.grid-container > :nth-child(4) { grid-area: four; }
.grid-container > :nth-child(5) { grid-area: five; }
.grid-container > :nth-child(6) { grid-area: six; }

/* .grid-container {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1rem;
	grid-template-areas:
		"one two three"
		"four five six";
} */

/* .grid-container > div { selects every <div> that’s a direct child of .grid-container
	aspect-ratio: 7 / 6;
	display: flex;		center content inside
	align-items: center;
	justify-content: center;
	overflow: hidden;			 prevent overflow
	background: #e4ecf2;		fallback bg for text blocks
	border-radius: 5px;
	box-shadow: 0 6px 15px rgba(0,0,0,0.1);
	border: 1px solid rgba(255,255,255,0.3);
}

.grid-container .picture img {
	width: 100%;
	height: 100%;
	object-fit: cover;
} */

/* .grid-container .text {
	display: flex;
	text-align: center;
	justify-content: center;
	align-items: center;
	flex-direction: column;   /* stack h2 and p 
	background: linear-gradient(135deg, #e4ecf2, #d5dfe7);
}

.grid-container .text h2 {
	margin: 0 2rem;
	font-size: clamp(1rem, 2.5vw, 2rem);
}

.grid-container .text p {
	margin: 0 2rem;
	font-size: clamp(0.7rem, 1.7vw, 1.2rem);
}

.grid-container .text h2::after { to create line under tab when hovered over
	content: ''; 
	width: 30%;
	height: 6px;
	background: #3498DB;
	display: block;
	margin: 1.5rem auto;
} */

/* --------------------------------
	ADJUSTING FOR SMALLER SCREENS
---------------------------------- */
@media(max-width: 1300px) {
	.grid-container .text h2::after {
		margin: 1rem auto;
	}

	.grid-container .text p {
		line-height: 1.3;
	}
}

@media(max-width: 950px) {
	.grid-container .text h2::after {
		margin: 0.7rem auto;
	}
}

@media(max-width: 800px) {
	#more-section {
		width: 90%;
		margin: auto;
		padding-top: 2rem;
	}

	.grid-container {
		grid-template-columns: 1fr; /* to one col */
	    grid-template-areas:
			"five"
			"two"
			"one"
			"four"
			"three"
			"six";
	}

	.grid-container .text h2 {
		margin-bottom: 1rem;
		font-size: 7vw;
	}

	.grid-container .text p {
		font-size: 4vw;
	}
}
