/* ================= PRODUCTS SECTION ================= */
.products {
  padding: 60px 0;
  background: #f9f9f9;
}

.section-title {
  text-align: center;
  margin-bottom: 30px;
}

.section-title h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 10px;
}

.section-title p {
  font-size: 16px;
  color: #555;
}

/* Carousel Wrapper */
.carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

/* Arrows */
.carousel-btn {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50px;
  background: var(--gray);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  font-size: 28px;
  color: #333;
  transition: opacity 0.6s ease, background 0.6s ease;
}

.carousel-btn:hover {
  background: rgba(0, 0, 0, 0.1);
}

.carousel-btn.left {
  left: -60px;
}

.carousel-btn.right {
  right: -60px;
}

/* Hide arrows when disabled */
.carousel-btn.hidden {
  display: none;
}

/* Scrollable Grid */
.products-grid {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  gap: 20px;
  padding: 20px 0;
  scrollbar-width: none; /* Firefox */
}

.products-grid::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}

/* Product Card */
.product-card {
  min-width: 280px;
  max-width: 280px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  height: auto;  /* FIXED: removed fixed 420px so content fits naturally */
}

/* Image */
.product-image {
  height: 200px;  /* FIXED: keep all images same height */
  width: 100%;    /* FIXED: removed conflicting width:100px */
  background-size: cover;
  background-position: center;
  flex-shrink: 0; /* ensures image area stays fixed */
}

/* Content */
.product-content {
  padding: 15px;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-content h2 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 5px;
  min-height: 24px;
}

.product-content h3 {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 10px;
  color: var(--primary);
  min-height: 20px;   /* FIXED: sync subheading height */
}

.product-content p {
  font-size: 14px;
  color: #555;
  flex-grow: 1;       /* FIXED: pushes button down so layout stays neat */
  margin-bottom: 15px;
}

/* Learn More Button */
.product-content .btn {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.3s ease;
  align-self: center;
}

.product-content .btn:hover {
  background: #005a9e;
}

/* Hero Section with Video */
/* Hero Section with Video */
.hero {
  position: relative;
  width: 100%;
  height: 100vh; /* fullscreen */
  display: flex;
  align-items: center;   /* vertically center */
  justify-content: flex-start; /* move text to the left */
  padding-left: 80px;   /* add some space from edge */
  color: white;
  text-align: left;     /* make sure text is aligned left */
  z-index: 2;
}

.bg-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: -1;
  transform: translate(-50%, -50%); /* center video */
  object-fit: cover; /* fill hero without distortion */
  opacity: 0.7; /* dim for readability */
  pointer-events: none; /* ignore clicks */
}


.hero-content {
  position: relative;
  z-index: 1;
  max-width: 600px; /* keeps text from stretching too far */
}

.hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #000; /* fallback if video doesn't load */
}

/* Keep video in its natural aspect ratio */
.bg-video {
  display: block;
  max-width: 100%;   /* scale down if too wide */
  height: auto;      /* keep aspect ratio */
  margin: 0 auto;    /* center horizontally */
}