#programs {
	padding: 80px 0;
}
/* Három oszlopos reszponzív Grid elrendezés */
.prg-cards-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
	gap: 40px;
	margin-top: 40px;
	width: 100%;
}

/* Egyedi program kártya háttér és árnyék nélkül */
.prg-card {
	display: flex;
	flex-direction: column;
	background: none !important;
	box-shadow: none !important;
	border: none !important;
	padding: 0 !important;
}

/* Lekerekített kép tároló fix képaránnyal */
.prg-img-wrap {
	width: 100%;
	aspect-ratio: 16/10;
	border-radius: 16px;
	overflow: hidden;
	margin-bottom: 20px;
	cursor: zoom-in;
}
.prg-img-wrap img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
	display: block;
}
.prg-img-wrap:hover img {
	transform: scale(1.04);
}

.prg-content {
	display: flex;
	flex-direction: column;
	flex-grow: 1; /* Kitölti a magasságot */
	text-align: center;
	align-items: center;
}

.prg-content h3 {
	font-size: 1.1rem;
	color: #000000;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	margin-bottom: 15px;
	font-weight: 600;
	line-height: 1.3;
}

.prg-content p {
	font-size: 0.92rem;
	color: #555555;
	line-height: 1.6;
	margin: 0;
	text-align:justify;
	hyphens:auto;
}

/* TOVÁBB GOMB STÍLUSA */
.btn-prg-more {
	background: none;
	border: 1px solid var(--primary);
	color: var(--primary);
	padding: 8px 24px;
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-weight: bold;
	border-radius: 4px;
	cursor: pointer;
	margin-top: 15px;
	transition: all 0.25s ease;
}
.btn-prg-more:hover {
	background: var(--primary);
	color: #fff;
}

/* RÉSZLETES PROGRAM LEÍRÁS POPUP (MODAL) */
#program-modal {
	display: none;
	position: fixed;
	z-index: 100000;
	top: 0; left: 0; width: 100%; height: 100%;
	background: rgba(0, 0, 0, 0.75);
	align-items: center;
	justify-content: center;
}
.prg-modal-window {
	background: #ffffff;
	width: 90%;
	max-width: 700px;
	height: 100%;
    max-height: 90vh;
	border-radius: 12px;
	overflow: hidden;
	position: relative;
	box-shadow: 0 10px 30px rgba(0,0,0,0.2);
	display: flex;
	flex-direction: column;
}
.prg-modal-close {
	position: absolute;
	top: 15px;
	right: 15px;
	font-size: 32px;
	background: rgba(255, 255, 255, 0.9);
	border: none;
	border-radius: 50%;
	width: 40px;
	height: 40px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 10;
	box-shadow: 0 2px 8px rgba(0,0,0,0.15);
	transition: color 0.2s;
}
.prg-modal-close:hover {
	color: var(--primary);
}
.prg-modal-header {
	position: relative;
	width: 100%;
	height: 250px;
	flex-shrink: 0;
}
.prg-modal-header img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.prg-modal-header h2 {
	position: absolute;
	bottom: 0; left: 0; right: 0;
	background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
	color: #ffffff;
	padding: 30px 25px 20px 25px;
	margin: 0;
	font-size: 1.8rem;
	font-weight: 700;
}
.prg-modal-body {
	padding: 25px;
	color: #444;
	line-height: 1.6;
	font-size: 0.98rem;
	text-align: left;
	overflow-y: auto;
	flex: 1;
}

.prg-modal-body p { margin-bottom: 15px; }
.prg-modal-body ul, .prg-modal-body ol { margin-left: 20px; margin-bottom: 15px; }
/* LIGHTBOX (Kép nagyító modal) */
.lightbox-overlay {
	display: none;
	position: fixed;
	z-index: 99999;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.9);
	align-items: center;
	justify-content: center;
}

.lightbox-content {
	position: relative;
	max-width: 90%;
	max-height: 85vh;
	text-align: center;
}

.lightbox-content img {
	max-width: 100%;
	max-height: 75vh;
	border-radius: 4px;
	box-shadow: 0 4px 25px rgba(0,0,0,0.5);
	object-fit: contain;
}

.lightbox-caption {
	color: #fff;
	margin-top: 15px;
	font-size: 1.1rem;
	font-weight: 500;
	letter-spacing: 0.05em;
}

.lightbox-close-btn {
	position: absolute;
	top: -45px;
	right: 0;
	background: none;
	border: none;
	color: #fff;
	font-size: 40px;
	cursor: pointer;
	line-height: 1;
	transition: color 0.2s;
}

.lightbox-close-btn:hover {
	color: var(--primary);
}