/* ============================================
   PRODUCT OFFERING COMPONENT
   Standalone component for displaying product offerings
   ============================================ */

.product-offering {
  width: 100%;
  position: relative;
}

/* Grid Layout */
.product-offering-grid {
  display: flex;
  flex-flow: wrap;
  gap: 40px;
  grid-template-rows: auto;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  justify-content: space-around;
  align-items: flex-start;
}

/* Product Offering Item */
.product-offering-item {
  flex-flow: column;
  justify-content: flex-start;
  align-items: center;
  width: auto;
  display: flex;
}

/* Media Wrapper */
.product-offering-media {
  background-color: var(--amp-light-gray);
  border-radius: 8px;
  flex-flow: column;
  width: 350px;
  height: 350px;
  margin-bottom: 16px;
  padding: 0;
  display: flex;
  overflow: hidden;
}

/* Image */
.product-offering-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Video Wrapper */
.product-offering-video-wrapper {
  width: 100% !important;
  height: 100% !important;
  flex: 1 1 0% !important;
  min-height: 0 !important;
  position: relative !important;
}

.product-offering-video-wrapper video {
  position: absolute !important;
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  z-index: 0 !important;
  visibility: visible !important;
  opacity: 1 !important;
  /* Anti-aliasing improvements */
  image-rendering: auto;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: transform;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Smooth video rendering */
  -webkit-transform: translateZ(0);
  -moz-transform: translateZ(0);
  -ms-transform: translateZ(0);
  -o-transform: translateZ(0);
  filter: blur(0);
  -webkit-filter: blur(0);
}

/* Content */
.product-offering-content {
  text-align: center;
  width: 350px;
  margin-bottom: 8px;
}

.product-offering-heading {
  color: var(--amp-yellow);
  letter-spacing: -.02em;
  text-transform: uppercase;
  margin-top: 0;
  font-size: 24px;
  font-weight: 700;
  line-height: 32px;
}

.product-offering-description {
  letter-spacing: -.01em;
  margin-bottom: 0;
  font-size: 14px;
  line-height: 1.8;
}

/* Responsive Design - Tablet (max-width: 991px) */
@media screen and (max-width: 991px) {
  .product-offering-grid {
    gap: 40px;
    flex-flow: wrap;
    grid-template-columns: 1fr 1fr;
    justify-content: center;
    align-items: flex-start;
  }

  .product-offering-content {
    width: 250px;
  }

  .product-offering-media {
    width: 250px;
    height: 250px;
  }
}

/* Responsive Design - Mobile (max-width: 767px) */
@media screen and (max-width: 767px) {
  .product-offering-grid {
    gap: 40px;
    flex-flow: column;
    justify-content: flex-start;
    align-items: center;
    grid-template-columns: 1fr;
  }

  .product-offering-content {
    width: 220px;
  }

  .product-offering-media {
    width: 220px;
    height: 220px;
  }
}

/* Fan Zone - 2 items layout: bring items closer together */
#fan-zone-product-offering .product-offering-grid {
  justify-content: center;
  gap: 120px; /* Gap between the 2 items */
}

