/* khz category section shortcode */
.khz-category-section {
  margin: 60px auto;
  padding: 40px;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 28px;
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.15);
  position: relative;
  border: 1px solid rgba(99, 102, 241, 0.12);
  backdrop-filter: blur(16px);
}
.khz-category-section::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(circle at top right, rgba(212, 175, 55, 0.08), transparent 55%);
}
.khz-category-section-header {
  position: relative;
  z-index: 1;
  margin-bottom: 30px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}
.khz-category-section-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #2563eb;
  margin-bottom: 8px;
}
.khz-category-section-title {
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 800;
  margin: 0 0 12px;
  color: #0f172a;
}
.khz-category-section-description {
  color: #4b5563;
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 0;
  max-width: 780px;
}
.khz-category-section-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  color: #0f172a;
  text-decoration: none;
  font-weight: 700;
}
.khz-category-section-link::after {
  content: "";
  display: block;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d4af37, #f4d03f);
  margin-left: 6px;
}
.khz-category-section-grid {
  position: relative;
  z-index: 1;
  margin-top: 32px;
  direction: rtl;
}
html[dir="ltr"] .khz-category-section-grid {
  direction: ltr;
}
.khz-category-section-grid .slick-list {
  overflow: hidden;
  margin: 0 -10px;
}
.khz-category-section-grid .slick-slide {
  padding: 0 10px;
  height: auto;
}
.khz-category-section-grid .slick-track {
  display: flex;
  align-items: stretch;
}
.khz-category-section-grid .slick-dots {
  margin: 18px 0 0;
  position: static;
  display: flex;
  justify-content: center;
  gap: 6px;
}
.khz-category-section-grid .slick-dots li {
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
  flex: 0 0 auto;
}
.khz-category-section-grid .slick-dots li button {
  width: 8px !important;
  height: 8px !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.4), rgba(244, 208, 63, 0.6)) !important;
  opacity: 0.45;
  padding: 0 !important;
  border: none !important;
  box-shadow: none !important;
  font-size: 0 !important;
  line-height: 0 !important;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.khz-category-section-grid .slick-dots li button:before {
  display: none !important;
}
.khz-category-section-grid .slick-dots li.slick-active button {
  opacity: 1;
  transform: scale(1.6);
  background: linear-gradient(135deg, #d4af37, #f4d03f) !important;
}
.khz-category-section-card {
  background: #fff;
  border-radius: 20px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.10);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.khz-category-section-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 40px rgba(212, 175, 55, 0.22);
  border-color: rgba(212, 175, 55, 0.4);
}
.khz-section-prev,
.khz-section-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #d4af37, #f4d03f);
  color: #0f172a;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 6px 18px rgba(212, 175, 55, 0.45);
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}
.khz-section-prev:hover,
.khz-section-next:hover {
  transform: translateY(-52%) scale(1.1);
  box-shadow: 0 10px 28px rgba(212, 175, 55, 0.6);
}
/* RTL: السابق على اليمين، التالي على اليسار */
.khz-section-prev {
  right: -18px;
  left: auto;
}
.khz-section-next {
  left: -18px;
  right: auto;
}
html[dir="ltr"] .khz-section-prev {
  left: -18px;
  right: auto;
}
html[dir="ltr"] .khz-section-next {
  right: -18px;
  left: auto;
}
.khz-category-section-card-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: inherit;
  padding: 24px 16px 20px;
}
/* Circular avatar */
.khz-category-section-card-avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  margin-bottom: 14px;
  background: linear-gradient(135deg, #0f3460, #16213e);
  border: 3px solid #fff;
  outline: 2px solid rgba(212, 175, 55, 0.35);
  box-shadow: 0 6px 18px rgba(15, 52, 96, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: outline-color 0.25s ease;
}
.khz-category-section-card:hover .khz-category-section-card-avatar {
  outline-color: rgba(212, 175, 55, 0.75);
}
.khz-category-section-card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.khz-category-section-card-avatar-placeholder {
  font-size: 2.2rem;
  font-weight: 800;
  color: #f4d03f;
  line-height: 1;
}
.khz-category-section-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.khz-category-section-card-title {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 400;
  color: #0f172a;
  line-height: 1.35;
}
.khz-category-section-card-meta {
  font-size: 0.85rem;
  color: #7a5e10;
  background: linear-gradient(135deg, rgba(212,175,55,0.12), rgba(244,208,63,0.08));
  border: 1px solid rgba(212,175,55,0.28);
  border-radius: 999px;
  padding: 3px 12px;
  font-weight: 400;
}
@media (max-width: 768px) {
  .khz-category-section {
    padding: 24px;
  }
  .khz-category-section-header {
    text-align: center;
  }
  .khz-category-section-link {
    width: 100%;
    justify-content: center;
  }
}
