/* ===== Services Section Cards with Buttons ===== */
.jb-services .jb-card {
  display: flex;
  flex-direction: column;
  height: 600px;               /* new fixed height */
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,.08);
  text-align: left;
  position: relative;
}

/* Image area stays fixed height */
.jb-services .jb-card .jb-hero {
  flex: 0 0 250px;             /* adjust image area (e.g. top half of card) */
  width: 100%;
  overflow: hidden;
}
.jb-services .jb-card .jb-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Body content + button area */
.jb-services .jb-card .jb-body {
  flex: 1;                     /* body grows to fill space */
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.jb-services .jb-card .jb-title {
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 10px;
  text-align: center;
}

.jb-services .jb-card .jb-bullets {
  list-style: none;
  margin: 0 0 20px 0;
  padding: 0;
  font-size: .95rem;
  text-align: center;
}
.jb-services .jb-card .jb-bullets li {
  display: inline;
}
.jb-services .jb-card .jb-bullets li::after {
  content: " • ";
  opacity: .4;
}
.jb-services .jb-card .jb-bullets li:last-child::after { content: ""; }

/* Button styles */
.jb-services .jb-card .jb-btn {
  margin-top: auto;             /* pushes button to bottom */
  align-self: center;
  display: inline-block;
  padding: 10px 22px;
  background: #222;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 4px;
  text-decoration: none;
  transition: background .2s ease, transform .2s ease;
}
.jb-services .jb-card .jb-btn:hover {
  background: #444;
  transform: translateY(-2px);
}
/* --- Force 3-column grid on the services section --- */
.jb-services .jb-grid {
  display: grid !important;                 /* override Elementor defaults */
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

/* Responsive: stack on small screens */
@media (max-width: 900px) {
  .jb-services .jb-grid {
    grid-template-columns: 1fr;
  }
}

/* Safety: ensure images and boxes behave predictably */
.jb-services img { max-width: 100%; height: auto; display: block; }


/* ===== Video Showcase Section ===== */
.jb-videos {
  padding: clamp(40px, 6vw, 80px) 0;
  background: #f9f9f9;
  text-align: center;
}

.jb-videos .jb-heading {
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(22px, 3.2vw, 38px);
  margin-bottom: 40px;
}

/* Responsive video grid */
.jb-videos .jb-video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.jb-videos .jb-video-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0,0,0,.08);
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Responsive iframe wrapper (16:9 ratio) */
.jb-videos .jb-video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  margin-bottom: 12px;
}
.jb-videos .jb-video-wrapper iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border-radius: 6px;
}

.jb-videos .jb-video-title {
  font-weight: 600;
  font-size: 1rem;
  margin-top: auto;
}

