/* =========================
   Kalameh Font Faces
========================= */
@font-face {
  font-family: "Kalameh";
  src: url("KALAMEH-REGULAR.woff2") format("woff2"),
    url("KALAMEH-REGULAR.woff") format("woff");
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: "Kalameh";
  src: url("KALAMEH-BOLD.woff2") format("woff2"),
    url("KALAMEH-BOLD.woff") format("woff");
  font-weight: 700;
  font-style: normal;
}
@font-face {
  font-family: "Kalameh";
  src: url("KALAMEH-BLACK.woff2") format("woff2"),
    url("KALAMEH-BLACK.woff") format("woff");
  font-weight: 900;
  font-style: normal;
}

/* =========================================
   WC 3D Category Carousel Pro - Base Styles
========================================= */
.wc3d-wrapper {
  --card-w: 420px;
  --card-h: 240px;
  --gap: 30px;
  --persp: 1100px;
  --brand: rgb(8, 42, 123);
  --anim-speed: 800ms;
  --easing: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --offset1: 220px;
  --offset2: 520px;
  --depth1: -120px;
  --depth2: -320px;

  width: min(100%, 1450px);
  margin: 24px auto;
  display: flex;
  gap: 24px;
  place-items: center;
  justify-content: space-around;
  align-items: center;
  flex-direction: row-reverse;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.wc3d-stage {
  width: 40%;
  max-width: 900px;
  height: calc(var(--card-h) + 40px);
  position: relative;
  perspective: var(--persp);
  display: flex;
  grid-template-columns: 64px 1fr 64px;
}

.wc3d-track {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}

.wc3d-card {
  position: absolute;
  top: 50%;
  left: 50%;
  height: auto;
  transform: translate(-50%, -50%);
  border-radius: 20px;
  overflow: hidden;
  transition: transform var(--anim-speed) var(--easing),
    opacity var(--anim-speed) var(--easing),
    filter var(--anim-speed) var(--easing);
  cursor: pointer;
  width: 75%;
}

.wc3d-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: filter var(--anim-speed) var(--easing);
}

/* Positions */
.wc3d-card.center {
  z-index: 10;
  transform: translate(-50%, -50%) translateZ(0) scale(1.06);
  filter: none;
  opacity: 1;
}
.wc3d-card.left-1 {
  z-index: 6;
  transform: translate(calc(-50% - var(--offset1)), -50%)
    translateZ(var(--depth1)) scale(0.9) rotateY(6deg);
  opacity: 0.9;
}
.wc3d-card.left-2 {
  z-index: 2;
  transform: translate(calc(-50% - var(--offset2)), -50%)
    translateZ(var(--depth2)) scale(0.8) rotateY(10deg);
  opacity: 0.9;
}
.wc3d-card.right-1 {
  z-index: 6;
  transform: translate(calc(-50% + var(--offset1)), -50%)
    translateZ(var(--depth1)) scale(0.9) rotateY(-6deg);
  opacity: 0.9;
}
.wc3d-card.right-2 {
  z-index: 2;
  transform: translate(calc(-50% + var(--offset2)), -50%)
    translateZ(var(--depth2)) scale(0.8) rotateY(-10deg);
  opacity: 0.9;
}

/* Simplified aliases */
.wc3d-card.left {
  z-index: 6;
  transform: translate(calc(-50% - var(--offset1)), -50%)
    translateZ(var(--depth1)) scale(0.9) rotateY(6deg);
  opacity: 0.9;
}
.wc3d-card.right {
  z-index: 6;
  transform: translate(calc(-50% + var(--offset1)), -50%)
    translateZ(var(--depth1)) scale(0.9) rotateY(-6deg);
  opacity: 0.9;
}

.wc3d-card.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Force color images (no grayscale) */
.wc3d-card.is-grayscale img {
  filter: none !important;
}

/* Arrows */
.wc3d-arrow {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: none;
  background: transparent;
  cursor: pointer;
  position: relative;
}
.wc3d-arrow::before {
  content: "";
  position: absolute;
  inset: 0;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="64" height="64" viewBox="0 0 24 24"><path d="M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"/></svg>')
    center/26px 26px no-repeat;
  background: var(--brand);
  opacity: 0.9;
}
.wc3d-arrow.right {
  transform: scaleX(-1);
}
.wc3d-arrow:hover {
  transform: scale(1.08);
}

/* Right column info */
.wc3d-info {
  text-align: right;
  max-width: 680px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 5px;
}
.wc3d-name {
  font-size: 70px !important;
  color: #333;
  font-family: "Kalameh";
  font-weight: 700;
  margin: 0 0 6px;
  position: relative;
  display: inline-block;
}
/* Decorative lines disabled
.wc3d-name::before,
.wc3d-name::after {
  content: "";
  position: absolute;
  top: 100%;
  width: 80px;
  height: 2px;
  background: var(--brand);
}
*/
.wc3d-name::before {
  left: -100px;
}
.wc3d-name::after {
  right: -100px;
}

.wc3d-desc {
  color: #848696;
  font-weight: 400;
  line-height: 0;
  font-family: "Kalameh";
  font-size: 16px;
}

.wc3d-link {
  display: inline-block;
  padding: 10px 14px;
  color: var(--bgcolor);
  border-radius: 10px;
  text-decoration: none;
  font-weight: 300;
  background: #fa4747;
  font-family: "Kalameh";
}
.wc3d-link:hover {
  background: #fa4747b8;
  color: #ffffff;
}

/* Dots */
.wc3d-dots {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 10px;
}
.wc3d-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(8, 42, 123, 0.22);
  cursor: pointer;
  transition: transform 0.25s, background 0.25s;
}
.wc3d-dot.active {
  background: var(--brand);
  transform: scale(1.18);
}

/* =========================================
   Category Pills (home1-cat)
========================================= */
.home1-cat {
  position: relative;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}
.home1-cat a {
  row-gap: 7px;
  display: flex;
  flex-direction: column;
}
.home1-cat span {
  position: relative;
  display: flex;
  align-content: center;
  justify-content: center;
  align-items: center;
  border: 1px dashed #333;
  border-radius: 50%;
}
.home1-cat span img {
  border-radius: 50% !important;
  padding: 10px !important;
  transition: 0.5s ease;
}
.home1-cat a:hover img {
  padding: 5px !important;
  transition: 0.5s ease;
}
.home1-cat h2 {
  text-align: center;
}

/* Utility */
.red-head {
  color: #fa4747 !important;
}

/* =========================================
   Image background swatches
========================================= */
.img-1 img {
  background: #cecddd;
}
.img-2 img {
  background: #cac7c0;
}
.img-3 img {
  background: #fee0d6;
}
.img-4 img {
  background: #e3e3e3;
}
.img-5 img {
  background: #dfedcf;
}
.img-6 img {
  background: #eae6e0;
}

/* =========================================
   Responsive
========================================= */

/* ≤900px */
@media (max-width: 900px) {
  .wc3d-wrapper {
    --card-w: 340px;
    --card-h: 190px;
  }
}

/* ≤768px (placed AFTER 900px so overrides apply) */
@media only screen and (max-width: 768px) {
  .home1-cat {
    flex-wrap: wrap;
    padding: 10px;
    row-gap: 20px;
  }
  .home1-cat a {
    width: calc(50% - 5px);
  }
  .home1-cat span {
    padding: 10px;
  }
  .wc3d-info {
    align-items: center;
  }
  .wc3d-wrapper {
    --depth1: -320px !important;
    --offset1: 100px !important;
    flex-direction: column !important;
    --card-w: 300px;
    --card-h: 700px;
    height: 650px;
    justify-content: space-around;
  }
  .wc3d-stage {
    right: 0;
    height: auto !important;
    top: 35px !important;
    width: 85%;
  }
  .wc3d-card img {
    width: auto;
    height: auto;
  }
  .wc3d-name {
    font-size: 40px !important;
  }
}

/* ≥769px (desktop tweaks) */
@media only screen and (min-width: 769px) {
  .home1-cat span img {
    width: 210px;
    height: 210px;
  }
  .home1-cat span {
    width: 230px;
    height: 230px;
  }
  .wc3d-name {
    font-size: 70px !important;
  }
  .wc3d-stage {
    right: 0;
  }
}
