/* Gallery Section */
.gallery-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 2rem;
	margin-top: 2rem;
}

.gallery-card {
	position: relative;
	overflow: hidden;
	border-radius: 10px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
	transition: transform 0.3s ease;
}

.gallery-card:hover {
	transform: translateY(-5px);
}

.gallery-card img {
	width: 100%;
	height: 250px;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}

.gallery-card:hover img {
	transform: scale(1.05);
}

.gallery-overlay {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
	padding: 20px;
	color: white;
	text-align: center;
}

.gallery-overlay h3 {
	margin: 0 0 10px 0;
	font-size: 1.2rem;
	text-shadow: 0 0 10px #000;
	text-align: center;
}

.gallery-overlay p {
	margin: 0.5rem 0;
}

.cta-button {
	display: inline-block;
	padding: 3px 10px;
	color: white;
	border-radius: 10px;
	text-decoration: none;
	font-weight: 500;
	transition: background-color 0.3s ease;
	cursor: pointer;
}

.cta-button:hover {
	background-color: var(--accent-color-dark, #388e3c);
}

/* Media Queries for Mobile Responsiveness */
@media (max-width: 768px) {
	.gallery-grid {
		grid-template-columns: 1fr;
	}

	.gallery-overlay h3 {
		font-size: 1.2rem;
	}

	.gallery-overlay p {
		font-size: 0.9rem;
	}

	.cta-button {
		padding: 0.4rem 0.8rem;
		font-size: 0.9rem;
	}
}

@media (max-width: 480px) {
	.gallery-grid {
		grid-template-columns: 1fr;
	}

	.gallery-overlay h3 {
		font-size: 1rem;
	}

	.gallery-overlay p {
		font-size: 0.8rem;
	}

	.cta-button {
		padding: 0.3rem 0.6rem;
		font-size: 0.8rem;
	}
}

/* Gallery Slider Styles */
.gallery-slider {
	width: 30%;
	display: flex;
	overflow: hidden;
	gap: 1rem;
	border-radius: 10px;
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.gallery-slider img {
	width: 100%;
	height: auto;
	display: block;
	transition: transform 0.3s ease;
}

.gallery-slider:hover img {
	transform: scale(1.05);
}

/* Pop-up Styles */
.popup {
	display: none;
	position: fixed;
	z-index: 1000;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: auto;
	background-color: rgba(0, 0, 0, 0.95);
	align-items: center;
	justify-content: center;
	padding: 25px;
}

.popup-content {
	position: relative;
	width: 80%;
	max-width: 1000px;
	margin: 0 auto;
	padding: 0;
}

.close-btn {
	position: absolute;
	top: 20px;
	right: 20px;
	color: #fff;
	background: rgba(0, 0, 0, 0.7);
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 2px solid white;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 100;
	transition: all 0.3s ease;
}

.close-btn:hover {
	background-color: var(--white);
	transform: scale(1.2);
	color: var(--error);
}

/* Carousel Styles */
.carousel {
	position: relative;
	border-radius: 10px;
	width: 100%;
	height: 75vh;
	background: #e0f9e0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.carousel-inner {
	display: flex;
	height: 100%;
	justify-content: center;
	align-items: center;
}

.carousel-item {
	min-width: 100%;
	height: 100%;
	display: none;
	justify-content: center;
	align-items: center;
	padding: 20px;
	transition: opacity 0.3s ease;
	opacity: 0;
}

.carousel-item.active {
	display: flex;
	opacity: 1;
	z-index: 1;
}

.carousel-item img {
	display: block;
	max-width: 95%;
	max-height: 95%;
	width: auto;
	height: auto;
	object-fit: cover;
	margin: auto;
}

@media screen and (max-width: 768px) {
	.prev,
	.next {
		font-size: 15px;
		padding: 10px;
	}
}

.prev {
	left: 20px;
}

.next {
	right: 20px;
}

.dots {
	position: absolute;
	z-index: 100;
	bottom: 2px;
	left: 50%;
	transform: translateX(-50%);
	padding: 8px 15px;
	border-radius: 20px;
	opacity: 0.7;
}

.dot {
	width: 12px;
	height: 12px;
	border: 2px solid var(--primary-color);
	border-radius: 50%;
	cursor: pointer;
	transition: all 0.3s ease;
	filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.5));
	background-color: rgba(255, 255, 255, 0.5);
}

.dot.active {
	background-color: var(--primary-color);
	transform: scale(1.2);
	background-color: white;
}

.dots {
	text-align: center;
	padding: 10px 0;
}

.dot {
	height: 15px;
	width: 15px;
	margin: 0 5px;
	background-color: transparent;
	border: 2px solid var(--secondary-color);
	border-radius: 50%;
	display: inline-block;
	cursor: url(https://ani.cursors-4u.net/others/oth-9/oth837.cur), pointer;
	transform: scale(0.7);
}

.dot.active {
	background-color: var(--secondary-color);
	transform: scale(1.2);
}

/* Extracurricular Section */
.extracurricular-wrapper {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	flex-wrap: wrap;
	gap: 1rem;
	padding-top: 2rem;
	position: relative;
}

.content {
	max-width: 50%;
	margin-bottom: 3.5rem;
}

/* Heading */
.title {
	display: inline-block;
	font-size: 2.5rem;
	font-weight: 700;
	color: #222;
	margin-bottom: 0.5rem;
}

/* Subtitle */
.subtitle {
	font-size: 1.3rem;
	color: #555;
	font-style: italic;
	margin-bottom: 1rem;
}

/* Description */
.description-extra {
	font-size: 1.1rem;
	color: var(--text-color);
	font-weight: 500;
	line-height: 1.6;
	text-align: justify;
}

/* Cloud Container */
.clouds-container {
	position: absolute;
	right: 0;
	bottom: 0;
	max-width: 45%;
	width: 100%;
}

.clouds-image {
	width: 100%;
	object-fit: cover;
	position: relative;
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
	.extracurricular-wrapper {
		flex-direction: column;
		text-align: center;
	}

	.content {
		max-width: 90%;
	}

	.clouds-container {
		max-width: 100%;
	}
}

@media screen and (max-width: 768px) {
	.extracurricular-wrapper {
		flex-direction: column-reverse;
		align-items: center;
	}

	.title {
		font-size: 1.2rem;
	}

	.subtitle {
		font-size: 0.8rem;
		white-space: nowrap;
	}

	.description-extra {
		font-size: 0.9rem;
		text-align: left;
	}

	.cloud-labels .cloud {
		font-size: 0.9rem;
		padding: 8px 12px;
	}

	.clouds-container {
		position: static;
		order: -1;
	}

	.popup-content {
		width: 70%;
		margin: 10px auto;
		width: 90%;
		margin: 0 auto;
	}

	.carousel {
		height: 70vh;
		height: 60vh;
	}

	.prev,
	.next {
		width: 40px;
		height: 40px;
		font-size: 20px;
	}
}
