/* Category Banner Styles */
.xcodee-category-banner {
  width: 100%;
  background-color: transparent;
  background-image: linear-gradient(
    180deg,
    var(--e-global-color-2b3031c) 25%,
    var(--e-global-color-bb3517e) 100%
  );
  border-radius: 16px;
  padding: 0 40px;
  margin: 40px 0 10px 0;
  overflow: visible; /* Allow image to extend beyond */
  position: relative;
}

.xcodee-category-banner::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  mix-blend-mode: color;
  background-image: url(https://the7.io/elementor-2025/wp-content/uploads/sites/125/2024/09/art-top-right.svg);
  --background-overlay: "";
  background-position: top right;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0.5;
  transition: background var(--overlay-transition, 0.3s),
    border-radius var(--border-transition, 0.3s),
    opacity var(--overlay-transition, 0.3s);
}

.xcodee-category-banner-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 5% 0 15%;
  position: relative;
}

.xcodee-category-banner-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 12px;
  z-index: 2; /* Keep text above image */
}

.xcodee-category-banner-breadcrumbs {
  width: 100%;
}

.xcodee-category-banner-breadcrumbs-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
}

.xcodee-category-banner-breadcrumbs-list li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.xcodee-category-banner-breadcrumbs-list li:not(:last-child)::after {
  content: "/";
  opacity: 0.6;
  font-weight: 400;
}

.xcodee-category-banner-breadcrumbs-list a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.xcodee-category-banner-breadcrumbs-list a:hover,
.xcodee-category-banner-breadcrumbs-list a:focus-visible {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.5);
}

.xcodee-category-banner-children {
  width: 100%;
}

.xcodee-category-banner-children-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 15px;
  line-height: 1.35;
}

.xcodee-category-banner-children-list a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.xcodee-category-banner-children-list a:hover,
.xcodee-category-banner-children-list a:focus-visible {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.35);
}

.xcodee-category-banner-title-wrapper {
  display: flex;
  align-items: center;
  gap: 20px;
}

.xcodee-category-banner-accent {
  display: block;
  width: 60px;
  height: 4px;
  background: var(--e-global-color-5b522ed);
  border-radius: 2px;
  flex-shrink: 0;
}

.xcodee-category-banner-title {
  margin: 0;
  font-size: 64px;
  font-weight: 700;
  font-family: "Days One", Sans-serif;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -2px;
  text-transform: uppercase;
}

.xcodee-category-banner-right {
  flex: 0 0 auto;
  width: 40%;
  max-width: 500px;
  position: relative;
  z-index: 1;
}

.xcodee-category-banner-image {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-start; /* Align to top */
  justify-content: center;
  margin-top: -70px; /* Negative margin to extend upward */
  position: relative;
}

.xcodee-category-banner-image img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.15));
  max-height: 220px; /* Control max height */
}

/* Responsive */
@media (max-width: 1024px) {
  .xcodee-category-banner {
    padding: 10px 30px;
  }

  .xcodee-category-banner-content {
    margin: 0;
  }

  .xcodee-category-banner-title {
    font-size: 48px;
  }

  .xcodee-category-banner-right {
    width: 35%;
  }

  .xcodee-category-banner-image {
    margin-top: -70px;
  }

  .xcodee-category-banner-image img {
    max-height: 200px;
    width: 80%;
  }
}

@media (max-width: 768px) {
  .xcodee-category-banner {
    padding: 0px 25px;
    border-radius: 12px;
  }

  .xcodee-category-banner-content {
    flex-direction: row;
    margin: 0;
    gap: 30px;
  }

  .xcodee-category-banner-left {
    width: 60%;
  }

  .xcodee-category-banner-title-wrapper {
    justify-content: center;
    width: 100%;
  }

  .xcodee-category-banner-title {
    font-size: 36px;
    letter-spacing: -1px;
  }

  .xcodee-category-banner-accent {
    width: 40px;
    height: 3px;
  }

  .xcodee-category-banner-right {
    width: 40%;
    max-width: 100%;
  }

  .xcodee-category-banner-image {
    margin-top: -40px;
    align-items: center; /* Center on mobile */
  }

  .xcodee-category-banner-image img {
    max-height: 220px;
  }
}

@media (max-width: 480px) {
  .xcodee-category-banner {
    padding: 20px 20px;
    margin: 30px 0;
  }

  .xcodee-category-banner-left {
    width: 100%;
  }

  .xcodee-category-banner-right {
    width: 100%;
  }

  .xcodee-category-banner-title {
    font-size: 28px;
  }

  .xcodee-category-banner-accent {
    width: 30px;
    height: 2px;
  }

  .xcodee-category-banner-content {
    gap: 10px;
    flex-direction: column;
  }

  .xcodee-category-banner-image {
    margin-bottom: -65px;
    margin-top: 0;
  }

  .xcodee-category-banner-image img {
    max-height: 175px;
  }
}
