/* =========================================
   SECTION BASE
========================================= */
.dr1059alerts {
	padding: 80px 20px;
	background: radial-gradient(circle at top, #0a0f2c, #020617);
	color: #fff;
	overflow: hidden;
}

.dr1059alerts-container {
	max-width: 1300px;
	margin: auto;
}

/* =========================================
   HEADER
========================================= */
.dr1059alerts-header {
	text-align: center;
	margin-bottom: 50px;
}

.dr1059alerts-header h2 {
	font-size: 2.6rem;
	font-weight: 700;
	background: linear-gradient(90deg, #00d4ff, #7c3aed);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
}

.dr1059alerts-subtitle {
	color: #cbd5f5;
	font-size: 1rem;
	margin-top: 10px;
	max-width: 700px;
	margin-inline: auto;
}

/* =========================================
   GRID
========================================= */
.dr1059alerts-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 30px;
}

/* =========================================
   CARD
========================================= */
.dr1059alert-card {
	position: relative;
	border-radius: 20px;
	padding: 20px;
	background: rgba(255, 255, 255, 0.05);
	backdrop-filter: blur(18px);
	border: 1px solid rgba(255, 255, 255, 0.1);
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), inset 0 0 20px
		rgba(255, 255, 255, 0.05);
	transition: all 0.5s ease;
	overflow: hidden;
}

/* shiny border */
.dr1059alert-card::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 20px;
	padding: 1px;
	background: linear-gradient(120deg, #00d4ff, #7c3aed, #00d4ff);
	-webkit-mask: linear-gradient(#000 0 0) content-box,
		linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
}

/* glossy sweep */
.dr1059alert-card::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.25),
		transparent);
	opacity: 0;
	transition: 0.6s;
}

.dr1059alert-card:hover {
	transform: translateY(-12px) scale(1.02);
	box-shadow: 0 25px 70px rgba(0, 0, 0, 0.9);
}

.dr1059alert-card:hover::before {
	opacity: 1;
	transform: translateX(100%);
}

/* =========================================
   MEDIA (FIXED - NO CROPPING)
========================================= */
.dr1059alert-media {
	position: relative;
	width: 100%;
	min-height: 240px;
	border-radius: 12px;
	background: #020617;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 10px;
	margin-bottom: 15px;
}

/* wrapper */
.dr1059media-wrapper {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* IMPORTANT FIX */
.dr1059alert-media img, .dr1059alert-media video {
	max-width: 100%;
	max-height: 320px;
	width: auto;
	height: auto;
	object-fit: contain;
	border-radius: 10px;
	display: block;
	transition: transform 0.5s ease;
}

/* subtle zoom */
.dr1059alert-card:hover img, .dr1059alert-card:hover video {
	transform: scale(1.05);
}

/* fallback */
.no-media {
	color: #777;
	font-size: 0.9rem;
}

/* =========================================
   NAV BUTTONS
========================================= */
.dr1059nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 10;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	border: none;
	cursor: pointer;
	background: rgba(0, 0, 0, 0.6);
	backdrop-filter: blur(10px);
	color: #fff;
	font-size: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
}

.dr1059prev {
	left: 10px;
}

.dr1059next {
	right: 10px;
}

.dr1059nav:hover {
	background: linear-gradient(135deg, #00d4ff, #7c3aed);
	transform: translateY(-50%) scale(1.15);
}

/* =========================================
   CONTENT
========================================= */
.dr1059alert-content h3 {
	font-size: 1.2rem;
	font-weight: 600;
	color: #fff;
	margin-bottom: 5px;
}

.dr1059alert-content h4 {
	font-size: 0.9rem;
	color: #a5b4fc;
	margin-bottom: 10px;
}

.dr1059alert-content p {
	font-size: 0.92rem;
	color: #d1d5db;
	line-height: 1.6;
}

/* =========================================
   NOSCRIPT
========================================= */
.dr1059alerts-noscript {
	text-align: center;
	color: #aaa;
	margin-top: 20px;
}

/* =========================================
   RESPONSIVE
========================================= */
@media ( max-width : 768px) {
	.dr1059alerts {
		padding: 60px 15px;
	}
	.dr1059alerts-header h2 {
		font-size: 2rem;
	}
	.dr1059alerts-grid {
		gap: 20px;
	}
	.dr1059nav {
		width: 36px;
		height: 36px;
		font-size: 16px;
	}
	.dr1059alert-media {
		min-height: 200px;
	}
}