
/* =========================================
   PREMIUM CATEGORY CAROUSEL
========================================= */

.lux-categories,
.lux-categories * {
  box-sizing: border-box;
}

.lux-categories {
  --lux-primary: #426cf5;
  position: relative;
  width: 100%;
  max-width: 1440px;
  margin: 35px auto;
  padding: 40px 30px 30px;
  direction: rtl;
  isolation: isolate;
  font-family: inherit;
  color: #182239;
  border: 1px solid #edf0f7;
  border-radius: 30px;
  background:
    radial-gradient(ellipse at 100% 0%,
      rgba(89, 130, 255, .065), transparent 38%),
    radial-gradient(ellipse at 0% 100%,
      rgba(244, 114, 182, .035), transparent 35%),
    #fff;
  overflow: hidden;
}

/* HEADER */

.lux-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 28px;
}

.lux-eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 10px;
}

.lux-eyebrow-line {
  width: 22px;
  height: 3px;
  border-radius: 20px;
  background: var(--lux-primary);
}

.lux-heading h2 {
  margin: 0;
  font-size: clamp(23px, 2.7vw, 32px);
  line-height: 1.5;
  font-weight: 900;
  letter-spacing: -.5px;
}

.lux-heading h2 span {
  color: var(--lux-primary);
}

.lux-heading p {
  margin: 7px 0 0;
  color: #9099a9;
  font-size: 13px;
}

.lux-head-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.lux-view-all {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 800;
  color: var(--lux-primary);
  text-decoration: none;
  white-space: nowrap;
  transition: gap .25s;
}

.lux-view-all:hover {
  gap: 12px;
}

.lux-view-all svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lux-arrows {
  display: flex;
  gap: 8px;
}

.lux-arrows button {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  background: #fff;
  color: #344054;
  border: 1px solid #e8edf5;
  border-radius: 14px;
  cursor: pointer;
  transition: all .25s;
}

.lux-arrows button:hover:not(:disabled) {
  color: #fff;
  background: var(--lux-primary);
  border-color: var(--lux-primary);
  box-shadow: 0 7px 18px rgba(66,108,245,.2);
  transform: translateY(-2px);
}

.lux-arrows button:disabled {
  opacity: .35;
  cursor: not-allowed;
}

.lux-arrows svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* SLIDER */

.lux-slider {
  display: flex;
  direction: rtl;
  gap: 17px;
  width: 100%;
  padding: 7px 2px 23px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 2px;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.lux-slider::-webkit-scrollbar {
  display: none;
}

/* CARDS */

.lux-card {
  flex: 0 0 calc((100% - 68px) / 5);
  min-width: 0;
  display: block;
  position: relative;
  overflow: hidden;
  border: 1px solid #edf0f6;
  border-radius: 23px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  scroll-snap-align: start;
  transition:
    transform .35s cubic-bezier(.2,.8,.2,1),
    box-shadow .35s,
    border-color .35s;
}

.lux-card:hover {
  transform: translateY(-7px);
  border-color: var(--accent);
  box-shadow:
    0 17px 38px rgba(30, 43, 75, .11),
    0 3px 9px rgba(30, 43, 75, .03);
}

/* VISUAL */

.lux-card-visual {
  height: 174px;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(145deg, var(--soft), #fff 140%);
}

.lux-card-visual::before {
  content: "";
  position: absolute;
  width: 185px;
  height: 185px;
  top: -91px;
  left: -70px;
  border-radius: 50%;
  background: var(--accent);
  opacity: .075;
}

.lux-card-visual::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 55px;
  background: linear-gradient(transparent, rgba(255,255,255,.45));
  pointer-events: none;
}

.lux-ring {
  position: absolute;
  width: 164px;
  height: 164px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  opacity: .13;
  transition: transform .45s;
}

.lux-circle {
  position: absolute;
  width: 137px;
  height: 137px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--accent), var(--accent2));
  opacity: .14;
  transition: transform .45s;
}

.lux-card:hover .lux-ring {
  transform: scale(1.3) rotate(30deg);
}

.lux-card:hover .lux-circle {
  transform: scale(1.13);
}

/* FLOATING DECORATIONS */

.lux-deco {
  position: absolute;
  z-index: 1;
  display: block;
  border-radius: 6px;
  background: var(--accent);
  opacity: .22;
}

.lux-deco-1 {
  width: 10px;
  height: 10px;
  right: 24px;
  bottom: 29px;
  transform: rotate(25deg);
}

.lux-deco-2 {
  width: 7px;
  height: 7px;
  left: 33px;
  top: 59px;
  border-radius: 50%;
}

/* MAIN ICON */

.lux-icon-wrap {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 91px;
  height: 91px;
  border-radius: 27px;
  color: var(--accent);
  background:
    linear-gradient(145deg, #fff, rgba(255,255,255,.7));
  border: 1px solid rgba(255,255,255,.95);
  box-shadow:
    0 15px 30px rgba(20,30,60,.08),
    inset 0 2px 3px rgba(255,255,255,.9);
  transform: rotate(-6deg);
  transition:
    transform .4s cubic-bezier(.2,.9,.2,1.3),
    box-shadow .3s;
}

.lux-icon-wrap svg {
  width: 53px;
  height: 53px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lux-card:hover .lux-icon-wrap {
  transform: translateY(-9px) rotate(0) scale(1.08);
  box-shadow: 0 19px 35px rgba(20,30,60,.12);
}

/* BADGE */

.lux-card-tag {
  position: absolute;
  top: 13px;
  right: 12px;
  z-index: 3;
  padding: 6px 10px;
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 20px;
  background: rgba(255,255,255,.78);
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.lux-card-number {
  position: absolute;
  z-index: 2;
  bottom: 12px;
  left: 13px;
  color: var(--accent);
  opacity: .38;
  font-size: 22px;
  font-weight: 900;
  font-family: Arial, sans-serif;
  direction: ltr;
}

/* CARD CONTENT */

.lux-card-body {
  padding: 19px 17px 16px;
}

.lux-card-body h3 {
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 850;
  color: #20293c;
  transition: color .25s;
}

.lux-card:hover .lux-card-body h3 {
  color: var(--accent);
}

.lux-card-body p {
  margin: 0 0 17px;
  font-size: 11px;
  color: #9299a7;
  line-height: 1.7;
}

.lux-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid #f0f2f6;
  color: #677388;
  font-size: 11px;
  font-weight: 800;
  transition: color .25s;
}

.lux-card:hover .lux-card-bottom {
  color: var(--accent);
}

.lux-card-arrow {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border-radius: 10px;
  background: var(--soft);
  color: var(--accent);
  transition: all .3s;
}

.lux-card-arrow svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lux-card:hover .lux-card-arrow {
  background: var(--accent);
  color: #fff;
  transform: translateX(-3px);
}

/* PROGRESS */

.lux-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  padding-top: 4px;
}

.lux-progress {
  position: relative;
  width: 160px;
  height: 5px;
  overflow: hidden;
  border-radius: 30px;
  background: #e9edf5;
}

.lux-progress-fill {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 25%;
  border-radius: 30px;
  background: linear-gradient(90deg, #7aa5ff, #416df5);
  transition: width .2s, right .2s;
}

.lux-counter {
  display: flex;
  align-items: center;
  gap: 5px;
  direction: ltr;
  font-size: 11px;
  font-family: Arial, sans-serif;
  color: #a2aabc;
}

.lux-counter strong {
  font-size: 14px;
  color: var(--lux-primary);
}

/* ACCESSIBILITY */

.lux-categories a:focus-visible,
.lux-categories button:focus-visible,
.lux-slider:focus-visible {
  outline: 3px solid #7ba6ff;
  outline-offset: 3px;
}

/* TABLET */

@media(max-width:1100px) {
  .lux-card {
    flex-basis: calc((100% - 34px) / 3);
  }
}

/* MOBILE */

@media(max-width:700px) {
  .lux-categories {
    margin: 15px auto;
    padding: 25px 15px 22px;
    border-radius: 22px;
  }

  .lux-head {
    align-items: flex-end;
    margin-bottom: 22px;
    gap: 10px;
  }

  .lux-heading h2 {
    font-size: 21px;
  }

  .lux-heading p {
    font-size: 11px;
  }

  .lux-eyebrow {
    font-size: 10px;
  }

  .lux-head-actions {
    gap: 10px;
  }

  .lux-view-all {
    display: none;
  }

  .lux-arrows button {
    width: 35px;
    height: 35px;
    border-radius: 11px;
  }

  .lux-slider {
    gap: 12px;
    padding-bottom: 17px;
  }

  .lux-card {
    flex-basis: calc((100% - 12px) / 2);
    border-radius: 19px;
  }

  .lux-card-visual {
    height: 138px;
  }

  .lux-ring {
    width: 125px;
    height: 125px;
  }

  .lux-circle {
    width: 110px;
    height: 110px;
  }

  .lux-icon-wrap {
    width: 72px;
    height: 72px;
    border-radius: 22px;
  }

  .lux-icon-wrap svg {
    width: 43px;
    height: 43px;
  }

  .lux-card-tag {
    top: 9px;
    right: 8px;
    font-size: 9px;
    padding: 5px 7px;
  }

  .lux-card-body {
    padding: 14px 11px;
  }

  .lux-card-body h3 {
    font-size: 13px;
  }

  .lux-card-body p {
    font-size: 10px;
    margin-bottom: 12px;
  }

  .lux-card-bottom {
    font-size: 10px;
  }

  .lux-card-arrow {
    width: 26px;
    height: 26px;
  }
}

@media(max-width:370px) {
  .lux-card {
    flex-basis: 70%;
  }

  .lux-heading p {
    display: none;
  }
}

@media(prefers-reduced-motion:reduce) {
  .lux-slider {
    scroll-behavior: auto;
  }

  .lux-categories *,
  .lux-categories *::before,
  .lux-categories *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* Local WordPress SVG and selected attachment images */
.lux-categories .lux-icon-wrap img{width:78%;height:78%;max-width:100%;object-fit:contain;border-radius:15px;display:block}
.lux-categories .lux-icon-wrap svg{width:53px;height:53px}
.lux-categories .lux-card-body{display:flex;flex-direction:column;min-height:145px}
.lux-categories .lux-card-bottom{margin-top:auto}
.lux-categories .lux-card{cursor:pointer}
.lux-categories .lux-card:not(a){cursor:default}
@media(max-width:700px){.lux-categories .lux-icon-wrap svg{width:43px;height:43px}.lux-categories .lux-card-body{min-height:130px}}
