/* Your original CSS - just modify these parts */

.showcase-container {
	/* CHANGED: Remove grid, add flex for carousel */
	display: flex;
	gap: 2rem;
	/* ADDED: Carousel properties */
	transition: transform 0.3s ease;
	padding: 2rem;
}

/* ADD: Carousel wrapper */
.showcase-carousel-wrapper {
	overflow: hidden;
	position: relative;
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
}

/* ADD: Carousel controls - positioned on carousel */
.carousel-prev, .carousel-next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(0, 0, 0, 0.7);
	border: 1px solid rgba(255, 255, 255, 0.3);
	color: white;
	padding: 1rem;
	cursor: pointer;
	border-radius: 50%;
	font-size: 2.5rem;
	z-index: 10;
	width: 50px;
	height: 50px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding-top: 3px;
}

.carousel-prev {
	left: 10px;
}

.carousel-next {
	right: 10px;
}

.carousel-prev:hover, .carousel-next:hover {
	background: rgba(0, 25, 36, 0.9);
}

/* Your original card styles - UNCHANGED */
.showcase-card {
	background-color: rgba(255, 255, 255, 0.05);
	border-radius: 4px;
	overflow: hidden;
	transition: transform 0.3s ease;
	cursor: pointer;
	position: relative;
	height: 300px;
	/* ADDED: Prevent shrinking in flex */
	flex: 0 0 270px;
	min-width: 270px;
}

/* All your other original styles remain exactly the same */
.showcase-card:hover {
	transform: translateY(-5px);
}
.showcase-image {
	height: 100%;
	width: 100%;
	background-color: #1a1f2d;
	position: absolute;
}
.showcase-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.showcase-category {
	position: absolute;
	top: 1rem;
	left: 1rem;
	padding: 0.3rem 0.8rem;
	font-size: 0.8rem;
	font-weight: bold;
	border-radius: 2px;
}
.showcase-content {
	padding: 1.5rem;
	z-index: 1;
    position: absolute;
	bottom:0;
	background: linear-gradient(to bottom, transparent, rgb(0 0 0 / 57%));
	width: 100%;
}
.showcase-date {
	font-size: 0.8rem;
	color: rgba(255, 255, 255, 0.6);
	margin-bottom: 0.5rem;
}
.showcase-title {
	color:white;
	font-size: 1.3rem;
	margin-bottom: 1rem;
	line-height: 1.4;
	margin-bottom: 0;
}
.showcase-excerpt {
	font-size: 0.9rem;
	color: rgba(255, 255, 255, 0.8);
	line-height: 1.6;
	margin-bottom: 1.5rem;
}
.showcase-card .read-more {
	color: rgba(255, 255, 255, 0.6);
	text-decoration: none;
	font-size: 0.9rem;
	font-weight: bold;
	display: inline-flex;
	align-items: center;
}
.showcase-card .read-more::after {
	content: "→";
	margin-left: 0.5rem;
}
.showcase-pagination {
	display: flex;
	justify-content: center;
	margin: 4rem 0;
}
.showcase-page-button {
	background-color: transparent;
	border: 1px solid rgba(255, 255, 255, 0.3);
	color: #ffffff;
	padding: 0.5rem 1rem;
	margin: 0 0.3rem;
	cursor: pointer;
	transition: all 0.3s ease;
	text-decoration: none;
}
.showcase-page-button:hover, .showcase-page-button.active {
	background-color: #001924;
	color: white;
	border-color: #001924;
}
@media screen and (max-width: 768px) {
	.showcase-card {
		flex: 0 0 250px;
		min-width: 250px;
	}
	.carousel-prev, .carousel-next {
		width: 40px;
		height: 40px;
		 
		 
	}
	.carousel-prev {
		left: 5px;
	}
	.carousel-next {
		right: 5px;
	}
}
.showcase-main-container{
	display: flex;
    flex-direction: column;
    align-content: space-around;
    align-items: center;
}
.showcase-main-container > h2{
	text-align: center;
}
.showcase-section{
	background-color: #050707;
}
.showcase-main-container h2{
	color:white;
}
.showcase-image .showcase-category{
	background-color: white;
    color: var(--primary);
}

/* Popup Modal Styles */
#showcase-popup {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.9);
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 1;
	visibility: visible;
	transition: all 0.3s ease;
}

#showcase-popup.hidden {
	opacity: 0;
	visibility: hidden;
}

.popup-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.popup-content {
	position: relative;
	background: #1a1f2d;
	border-radius: 12px;
	max-width: 90vw;
	max-height: 90vh;
	width: 800px;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	height: 90%;
}

.popup-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0.1rem 1.5rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.slide-counter {
	color: rgba(255, 255, 255, 0.7);
	font-size: 0.9rem;
}

.popup-close {
	background: none;
	border: none;
	color: white;
	font-size: 1.5rem;
	cursor: pointer;
	padding: 0.5rem;
	line-height: 1;
}

.popup-close:hover {
	color: #ccc;
}

.popup-slider {
	position: relative;
	flex: 1;
	overflow: hidden;
}

.popup-slide-content {
	padding: 2rem;
	height: 100%;
	overflow-y: auto;
	color: white;
}

/* Slide content styles */
.popup-slide-content img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
	margin: 1rem 0;
}

.popup-slide-content h3 {
	color: white;
	margin-bottom: 1rem;
	font-size: 1.5rem;
}

.popup-slide-content p {
	color: rgba(255, 255, 255, 0.8);
	line-height: 1.6;
	margin-bottom: 1rem;
}

.popup-slide-content video {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
	margin: 1rem 0;
}

/* Navigation buttons */
.popup-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(0, 0, 0, 0.5);
	border: none;
	color: white;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 2.5rem;
	transition: background 0.3s ease;
	padding: 1rem;
    padding-top: 5px;
}

.popup-nav:hover:not(:disabled) {
	background: rgba(0, 0, 0, 0.8);
}

.popup-nav:disabled {
	opacity: 0.3;
	cursor: not-allowed;
}

.popup-prev {
	left: 10px;
}

.popup-next {
	right: 10px;
}

/* Dots navigation */
.popup-footer {
	padding: 1rem;
	display: flex;
	justify-content: center;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.popup-dots {
	display: flex;
	gap: 0.5rem;
}

.popup-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.3);
	cursor: pointer;
	transition: all 0.3s ease;
}

.popup-dot.active {
	background: white;
	transform: scale(1.2);
}

.popup-dot:hover {
	background: rgba(255, 255, 255, 0.6);
}

/* Prevent body scroll when popup open */
body.popup-open {
	overflow: hidden;
}

/* Responsive */
@media screen and (max-width: 768px) {
	.popup-content {
		width: 95vw;
		max-height: 95vh;
	}
	
	.popup-slide-content {
		padding: 1rem;
	}
	
	.popup-header {
		padding: 0.8rem 1rem;
	}
	
	.popup-nav {
		width: 35px;
		height: 35px;
		font-size: 1rem;
	}
}