/* ==========================================================================
   QB Categories Tabs Widget – Frontend Styles
   ========================================================================== */

/* =====================
   Main Container
   ===================== */
.qb-cst-wrap {
	background: #f9f9f9;
	border: 1px solid #e3e3e3;
	border-radius: 10px;
	padding: 20px;
	margin: 20px 0;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
	font-family: "Segoe UI", Tahoma, sans-serif;
}

/* =====================
   Tabs
   ===================== */
.qb-cst-tabs {
	display: flex;
	flex-wrap: wrap;
	margin: 0 0 20px;
	padding: 0;
	list-style: none;
	border-bottom: 2px solid #e3e3e3;
}

.qb-cst-tabs li.qb-cst-tab {
	padding: 10px 20px;
	margin-right: 10px;
	cursor: pointer;
	background: #ffffff;
	border-radius: 10px 10px 0 0;
	font-weight: 600;
	color: #101D4B;
	transition: all 0.3s ease;
}

.qb-cst-tabs li.qb-cst-tab.active,
.qb-cst-tabs li.qb-cst-tab:hover {
	background: #ED7D31;
	color: #ffffff;
}

/* =====================
   Tabs Content
   ===================== */
.qb-cst-tabs-content {
	position: relative;
}

.qb-cst-tab-panel {
	display: none;
	margin-top: 20px;
}

.qb-cst-tab-panel.active {
	display: block;
}

/* =====================
   Slider Wrapper
   ===================== */
.qb-cst-slider {
	display: flex;
	gap: 15px; /* Gap بين الكاردات */
}

/* =====================
   Subcategory Card
   ===================== */
.qb-cst-slide {
	position: relative;
	background: #ffffff;
	border-radius: 15px;
	overflow: hidden;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
	transition: all 0.35s ease;
	flex: 1 0 auto; /* حتى يتفاعل مع الـ gap */
}

.qb-cst-slide a {
	display: flex;
	flex-direction: column;
	height: 100%;
	text-decoration: none;
	color: inherit;
}

.qb-cst-slide img {
	width: 100%;
	height: 230px;
	object-fit: cover;
	display: block;
	border-radius: 15px 15px 0 0;
}

.qb-cst-title {
	margin: 0;
	padding: 15px 10px;
	text-align: center;
	font-size: 18px;
	font-weight: 600;
	letter-spacing: 0.5px;
	color: #101D4B;
	background: #f8f8f8;
	border-radius: 0 0 15px 15px;
	box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.05);
	transition: background 0.3s ease, color 0.3s ease;
}

/* =====================
   Hover Effects
   ===================== */
.qb-cst-slide:hover {
	transform: translateY(-5px);
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.qb-cst-slide:hover .qb-cst-title {
	background: #ED7D31;
	color: #ffffff;
}

/* =====================
   Soft Overlay
   ===================== */
.qb-cst-slide:hover::after {
	opacity: 1;
}

/* =====================
   View All Button
   ===================== */
.qb-cst-view-all {
	margin-top: 15px;
	text-align: center;
}

.qb-cst-view-all a {
	display: inline-block;
	padding: 10px 25px;
	background: #ED7D31;
	color: #ffffff;
	font-weight: 600;
	border-radius: 8px;
	text-decoration: none;
	transition: background 0.3s ease;
}

.qb-cst-view-all a:hover {
	background: #101D4B;
    color: white;
}
/* =====================
   Slick Overrides
   ===================== */
.slick-slide {
	outline: none;
}

/* =====================
   Responsive
   ===================== */
@media (max-width: 1199px) {
	.qb-cst-slide {
		width: calc((100% / 3) - 10px); /* 3 كاردات في الصف مع gap 15px */
	}
}

@media (max-width: 991px) {
	.qb-cst-slide {
		width: calc((100% / 2) - 7.5px); /* 2 كاردات في الصف مع gap 15px */
	}
}

@media (max-width: 600px) {
	.qb-cst-slide {
		width: 100%; /* صف واحد لكل الكاردات */
	}
}
/* =====================
   Slick Slider Gap
   ===================== */
.qb-cst-slider .slick-slide {
	margin-right: 15px; /* المسافة بين كل سلايد */
}

.qb-cst-slider .slick-slide:last-child {
	margin-right: 0; /* آخر واحد ما يكون له مسافة */
}
