/* ============================================================
   REUSABLE IMAGE CARDS
   ------------------------------------------------------------
   Shared card visuals & behavior:
   - Image-box based cards (large + small)
   - Neutral card appearance
   - Clickable hover behavior
   - Safe reuse across multiple pages
   ============================================================ */

/* ================================================= */
/* BASE CARD WRAPPER                                */
/* ================================================= */

.bering-cards .elementor-widget-image-box .elementor-image-box-wrapper {
  display: flex;
  flex-direction: column;
  height: 100%;
  background-color: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--bering-dark-grey);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
  transition: transform 0.45s ease, box-shadow 0.45s ease;
}

/* Full-width responsive image */
.bering-cards .elementor-widget-image-box .elementor-image-box-img img {
  width: 100%;
  height: auto;
  display: block;
}

/* ===================================== */
/* NORMALIZE IMAGE HEIGHTS (LARGE CARDS ONLY) */
/* ===================================== */

.bering-cards .card-grid-lg .elementor-image-box-img {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.bering-cards .card-grid-lg .elementor-image-box-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Remove Elementor grow animation inside cards */
.bering-cards .elementor-animation-grow,
.bering-cards .elementor-animation-grow img {
  transform: none !important;
  transition: none !important;
}

/* Content spacing handled in Elementor */
.bering-cards .elementor-widget-image-box .elementor-image-box-content {
  /* padding: 0 !important; */
  padding: 0.75rem 1rem !important;
}

/* ================================================= */
/* CARD TITLES                                      */
/* ================================================= */

.bering-cards .elementor-widget-image-box .elementor-image-box-title,
.bering-cards .elementor-widget-image-box .elementor-image-box-title a {
  font-weight: 600;
  color: var(--bering-text);
  text-decoration: none;
}

/* Disable global link hover scaling inside cards */
.bering-cards .elementor-widget-image-box .elementor-image-box-title a,
.bering-cards .elementor-widget-image-box .elementor-image-box-title a:hover {
  display: inline;
  transform: none !important;
  transition: color 0.25s ease !important;
}

/* ================================================= */
/* NON-CLICKABLE CARDS                              */
/* ================================================= */

.bering-cards
  .elementor-widget-image-box:not(.card-clickable)
  .elementor-image-box-wrapper:hover {
  transform: none !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06) !important;
}

/* ================================================= */
/* CLICKABLE CARDS                                  */
/* ================================================= */

.bering-cards .elementor-widget-image-box.card-clickable .elementor-image-box-wrapper {
  cursor: pointer;
}

/* Hover: lift + scale */
.bering-cards
  .elementor-widget-image-box.card-clickable
  .elementor-image-box-wrapper:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 20px 38px rgba(0, 0, 0, 0.16);
}

/* Title color for clickable cards */
.bering-cards
  .elementor-widget-image-box.card-clickable
  .elementor-image-box-title a {
  color: var(--bering-accent) !important;
}

/* Hover title color */
.bering-cards
  .elementor-widget-image-box.card-clickable
  .elementor-image-box-wrapper:hover
  .elementor-image-box-title a {
  color: var(--bering-accent-hover) !important;
}

/* ================================================= */
/* TITLE SIZE – SMALL CARDS                          */
/* ================================================= */

.bering-cards .card-grid-sm .elementor-widget-image-box .elementor-image-box-title,
.bering-cards .card-grid-sm .elementor-widget-image-box .elementor-image-box-title a {
  font-size: 0.94rem;
}

@media (max-width: 767px) {
  .bering-cards .card-grid-sm .elementor-widget-image-box .elementor-image-box-title,
  .bering-cards .card-grid-sm .elementor-widget-image-box .elementor-image-box-title a {
    font-size: 0.9rem;
  }
}

/* ================================================= */
/* TITLE SIZE – LARGE CARDS                          */
/* ================================================= */

.bering-cards .card-grid-lg .elementor-widget-image-box .elementor-image-box-title,
.bering-cards .card-grid-lg .elementor-widget-image-box .elementor-image-box-title a {
  font-size: 1.3rem;
}

/* Desktop / laptop */
@media (max-width: 1366px) and (min-width: 1201px) {
  .bering-cards .card-grid-lg .elementor-widget-image-box .elementor-image-box-title,
  .bering-cards .card-grid-lg .elementor-widget-image-box .elementor-image-box-title a {
    font-size: 1.24rem;
  }
}

/* Tablet landscape */
@media (max-width: 1200px) and (min-width: 1025px) {
  .bering-cards .card-grid-lg .elementor-widget-image-box .elementor-image-box-title,
  .bering-cards .card-grid-lg .elementor-widget-image-box .elementor-image-box-title a {
    font-size: 1.18rem;
  }
}

/* Tablet portrait */
@media (max-width: 1024px) and (min-width: 881px) {
  .bering-cards .card-grid-lg .elementor-widget-image-box .elementor-image-box-title,
  .bering-cards .card-grid-lg .elementor-widget-image-box .elementor-image-box-title a {
    font-size: 1.14rem;
  }
}

/* Mobile landscape */
@media (max-width: 880px) and (min-width: 768px) {
  .bering-cards .card-grid-lg .elementor-widget-image-box .elementor-image-box-title,
  .bering-cards .card-grid-lg .elementor-widget-image-box .elementor-image-box-title a {
    font-size: 1.1rem;
  }
}

/* Mobile portrait */
@media (max-width: 767px) {
  .bering-cards .card-grid-lg .elementor-widget-image-box .elementor-image-box-title,
  .bering-cards .card-grid-lg .elementor-widget-image-box .elementor-image-box-title a {
    font-size: 1.05rem;
  }
}

/* ============================================================
   EQUIPMENT SUPPLY TAB – CARD GRID COLUMN LIMITS + ROW GAPS
   - ≤1200px: up to 3 per row
   - ≥1440px : up to 4 per row
   - Row gap: 1rem (only noticeable when wrapping)
   ============================================================ */

.bering-cards .card-grid-sm {
  display: flex;
  flex-wrap: wrap;
  row-gap: 2rem; /* 👈 gap between rows */
  /* column gap stays handled by your width calc (-1rem) */
}

/* default (mobile): 1 per row */
.bering-cards .card-grid-sm > .elementor-widget-image-box {
  flex: 0 1 100%;
  max-width: 100%;
}

/* 768–1200px: 3 per row */
@media (min-width: 768px) and (max-width: 1200px) {
  .bering-cards .card-grid-sm > .elementor-widget-image-box {
    flex: 0 1 calc(33.333% - 1rem);
    max-width: calc(33.333% - 1rem);
  }
}

/* 1201–1439px (laptop): keep 3 per row */
@media (min-width: 1201px) and (max-width: 1366px) {
  .bering-cards .card-grid-sm > .elementor-widget-image-box {
    flex: 0 1 calc(33.333% - 1rem);
    max-width: calc(33.333% - 1rem);
  }
}

/* ≥1440px (desktop+): 4 per row */
@media (min-width: 1367px) {
  .bering-cards .card-grid-sm > .elementor-widget-image-box {
    flex: 0 1 calc(25% - 1rem);
    max-width: calc(25% - 1rem);
  }
}
/* ============================================================
   EQUIPMENT SUPPLY TAB – REMOVE BOXED MAX-WIDTH CLAMP
   Allow the grid to expand to the full width of the tab content
   Scoped to page 11866 inside tab content 1182
   ============================================================ */

#elementor-tab-content-1182 .elementor-11866 .e-con-boxed > .e-con-inner{
  max-width: none !important;
  width: 100% !important;
}

/* optional: if Elementor also applies inline padding you don't want */
#elementor-tab-content-1182 .elementor-11866 .e-con-boxed > .e-con-inner{
  padding-left: 0 !important;
  padding-right: 0 !important;
}



