.g-master-2025 .monitor-background {
  height: 500px;
  overflow: hidden;
  background-size: cover;
}

.g-master-2025 .display-gmaster {
  max-width: 1240px;
  margin: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-top: -23rem;
  text-align: center;
  gap: 2rem;
  padding: 0 15px;
}

.g-master-2025 .display-gmaster h2 {
  text-align: center;
  color: white;
}

.g-master-2025 .display-gmaster .img-container {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 80%;
  overflow: visible;
  margin: auto;
  margin: 3rem 0 -1.5rem 0;
  perspective: 1500px;
}

/* IMPORTANT: Hide containers by default so they don't flash */
.g-master-2025 .display-gmaster .container-1,
.g-master-2025 .display-gmaster .container-2 {
  opacity: 0;
  transition: none;
  transform-style: preserve-3d;
  backface-visibility: hidden;
}

.g-master-2025 .display-gmaster .container-1 {
  margin-right: -5rem;
  z-index: 1;
}

.g-master-2025 .display-gmaster .container-2 {
  margin-left: -5rem;
  margin-bottom: 5rem;
}

@media screen and (max-width: 1240px) {
  .g-master-2025 .display-gmaster .img-container {
    max-width: 60%;
  }
}

@media screen and (max-width: 1000px) {
  .g-master-2025 .display-gmaster {
    margin-top: -30rem;
  }
}

@media screen and (max-width: 767px) {
  .g-master-2025 .monitor-background {
    height: 380px;
  }
  .g-master-2025 .display-gmaster {
    margin-top: -20rem;
    gap: 1rem;
  }
}

/* ============================================
   Slide and Fade Animation
   ============================================ */
.g-master-2025 .animation-slide-fade .container-1 {
  opacity: 0;
  transform: translateX(-150px) translateY(30px);
  animation: slideInLeft 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s forwards;
}

.g-master-2025 .animation-slide-fade .container-2 {
  opacity: 0;
  transform: translateX(150px) translateY(-30px);
  animation: slideInRight 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) 0.5s forwards;
}

@keyframes slideInLeft {
  to {
    opacity: 1;
    transform: translateX(0) translateY(0);
  }
}

@keyframes slideInRight {
  to {
    opacity: 1;
    transform: translateX(0) translateY(0);
  }
}

/* Hover Effects - only when not animating and images are visible */
.g-master-2025 .img-container:not(.animating) .container-1,
.g-master-2025 .img-container:not(.animating) .container-2 {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Only apply hover when images are visible (have been animated in) */
.g-master-2025 .img-container.animated:not(.animating) .container-1:hover,
.g-master-2025 .img-container.animated:not(.animating) .container-2:hover {
  transform: scale(1.05) translateY(-10px);
  z-index: 10;
}

.g-master-2025 .g-master-product-series-listing.product-list-new-style {
  justify-content: center;
  padding: 20px;
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

@media (max-width: 767px) {
  .g-master-2025 .g-master-product-series-listing {
    display: flex;
    flex-direction: column;
  }
  .g-master-2025 .g-master-product-series-listing .new-product-series {
    width: 100%;
    max-width: 100%;
  }
  .g-master-2025 .product-list-new-style .new-product-series .overlay-container {
    left: 100%;
  }
}
.g-master-2025 .g-master-product-series-listing .new-product-series {
  width: 100%;
}

.g-master-2025 .product-category-group {
  margin-bottom: 60px;
  max-width: 100%;
}

.g-master-2025 .category-header {
  font-size: 34px;
  font-weight: bold;
  margin-bottom: 50px;
  color: #333;
  text-align: center;
}

/* Mobile Styles (default) */
.g-master-2025 .mobile-swiper {
  display: block;
  position: relative;
  padding: 0 40px; /* Space for navigation buttons */
}

.g-master-2025 .desktop-flex-container {
  display: none;
}

.g-master-2025 .swiper {
  width: 100%;
  overflow: hidden;
}

.g-master-2025 .swiper-slide {
  height: auto;
}

/* Swiper navigation buttons */
.g-master-2025 .swiper-button-next,
.g-master-2025 .swiper-button-prev {
  color: #333;
  width: 30px;
  height: 30px;
}

.g-master-2025 .swiper-button-next::after,
.g-master-2025 .swiper-button-prev::after {
  font-size: 20px;
}

.g-master-2025 .swiper-pagination {
  bottom: -30px !important;
}

.g-master-2025 .swiper-pagination-bullet {
  background: #333;
  opacity: 0.3;
}

.g-master-2025 .swiper-pagination-bullet-active {
  opacity: 1;
}
.g-master-2025 .product-list-new-style .new-product-series .points-list {
  min-height: 220px;
}
.g-master-2025 .g-master-product-series-listing.product-list-new-style .resolution-list {
  min-height: 150px;
}
/* Desktop Styles */
@media (min-width: 768px) {
  .g-master-2025 .mobile-swiper {
    display: none !important;
  }

  .g-master-2025 .desktop-flex-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: -10px; /* Negative margin to offset item padding */
  }
}
