/* ═══════════════════════════════════════════════════════════════
   Ibrahim Packages Grid — Elementor Widget
   ═══════════════════════════════════════════════════════════════ */

.ibpkg-grid {
	display: grid;
	gap: 24px;
}
.ibpkg-cols-1 { grid-template-columns: repeat(1, 1fr); }
.ibpkg-cols-2 { grid-template-columns: repeat(2, 1fr); }
.ibpkg-cols-3 { grid-template-columns: repeat(3, 1fr); }
.ibpkg-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
	.ibpkg-cols-4 { grid-template-columns: repeat(2, 1fr); }
	.ibpkg-cols-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
	.ibpkg-cols-1,
	.ibpkg-cols-2,
	.ibpkg-cols-3,
	.ibpkg-cols-4 { grid-template-columns: 1fr; }
}

/* ── Card ────────────────────────────────────────────────────── */

.ibpkg-card {
	background: #fff;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
	display: flex;
	flex-direction: column;
	transition: transform 0.18s, box-shadow 0.18s;
}
.ibpkg-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.13);
}

/* ── Image ───────────────────────────────────────────────────── */

.ibpkg-img-wrap {
	display: block;
	overflow: hidden;
	aspect-ratio: 4 / 3;
	background: #f5f5f5;
}
.ibpkg-img-wrap img,
.ibpkg-img-wrap .ibpkg-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s;
}
.ibpkg-card:hover .ibpkg-img-wrap img {
	transform: scale(1.04);
}

/* ── Body ────────────────────────────────────────────────────── */

.ibpkg-card-body {
	padding: 20px;
	display: flex;
	flex-direction: column;
	flex: 1;
	gap: 6px;
}

/* ── Badge ───────────────────────────────────────────────────── */

.ibpkg-badge {
	display: inline-block;
	background: #1a1a2e;
	color: #fff;
	font-size: 0.7rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	padding: 3px 10px;
	border-radius: 20px;
	align-self: flex-start;
}

/* ── Name ────────────────────────────────────────────────────── */

.ibpkg-name {
	font-size: 1.05rem;
	font-weight: 700;
	margin: 0;
	color: #1a1a2e;
	line-height: 1.3;
}
.ibpkg-name a {
	color: inherit;
	text-decoration: none;
}
.ibpkg-name a:hover {
	color: #2271b1;
}

/* ── Category ────────────────────────────────────────────────── */

.ibpkg-cat {
	font-size: 0.8rem;
	color: #888;
	margin: 0;
}

/* ── Pricing ─────────────────────────────────────────────────── */

.ibpkg-pricing {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 8px;
	margin-top: 4px;
}
.ibpkg-list-price {
	font-size: 0.85rem;
	color: #aaa;
}
.ibpkg-pkg-price {
	font-size: 1.35rem;
	font-weight: 700;
	color: #1a1a2e;
}
.ibpkg-savings {
	font-size: 0.78rem;
	font-weight: 700;
	color: #2e7d32;
	background: #e8f5e9;
	border: 1px solid #a5d6a7;
	padding: 2px 8px;
	border-radius: 20px;
}

/* ── Button ──────────────────────────────────────────────────── */

.ibpkg-btn {
	display: block;
	margin-top: auto;
	padding: 10px 20px;
	background: #1a1a2e;
	color: #fff !important;
	font-size: 0.875rem;
	font-weight: 600;
	text-align: center;
	text-decoration: none;
	border-radius: 4px;
	transition: background 0.18s;
}
.ibpkg-btn:hover {
	background: #2271b1;
	color: #fff !important;
}

/* ── Empty state ─────────────────────────────────────────────── */

.ibpkg-no-results {
	color: #888;
	font-style: italic;
}
