/* Alternative H2 Style */
html .brxe-head-sub-heading-3-col .alt-heading-style  {
    text-align: center;
    margin-bottom: 30px;
    font-family: var(--font-secondary);
    text-transform: uppercase;
    font-size: 1.8em !important;
}

/* Bricks automatically adds 'brxe-' before the element name */
.brxe-head-sub-heading-3-col .hsh-3-col-wrapper {
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  margin-top: 70px;
  margin-bottom: 70px;
}

/* Styles for the H2 and WYSIWYG content area */
.brxe-head-sub-heading-3-col .main-content-area {
  text-align: center;
  margin-bottom: 50px;
}

.brxe-head-sub-heading-3-col .main-heading {
font-size:2.4em !important;
}

.brxe-head-sub-heading-3-col .wysiwyg-content{
  text-align: left !important;  
}

/* Grid container for the cards */
.brxe-head-sub-heading-3-col .cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

/* Styles for each individual card item */
.brxe-head-sub-heading-3-col .card-item {
  position: relative;
  min-height: 470px;
  border-radius: 25px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end; /* Align content to bottom */
  align-items: center;
  padding: 20px 20px 30px; /* Bottom padding for spacing */
  overflow: hidden;
  text-align: center;
  color: #fff;
  /* FIX: Hide the base background to prevent ghosting on mobile */
  background-image: none !important; 
}

/* Dark overlay effect */
.brxe-head-sub-heading-3-col .card-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.1);
  z-index: 1;
}

/* Content wrapper to position content above the overlay */
.brxe-head-sub-heading-3-col .card-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Style for the H3 inside the card */
.brxe-head-sub-heading-3-col .card-content h3 {
  color: #fff;
  margin: 0 0 15px 0;
  text-transform:uppercase;
}

/* Style for the arrow icon */
.brxe-head-sub-heading-3-col .card-content .arrow-icon {
  width: 80px;
  height: auto;
}

.quaternary-bg-wrapper {
  width: 100%;
}

.brxe-head-sub-heading-3-col .card-item {
  position: relative;
  overflow: hidden;
  transition: transform 0.5s ease;
}

.brxe-head-sub-heading-3-col .card-item::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* FIX: Use the variable passed from PHP */
  background-image: var(--card-bg); 
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat; 
  transform: scale(1);
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 0;
  backface-visibility: hidden;
}

.brxe-head-sub-heading-3-col .wysiwyg-content a{
text-decoration:underline;
}




/* Zoom effect on hover */
.brxe-head-sub-heading-3-col .card-item:hover::after,
.brxe-head-sub-heading-3-col .card-item:active::after {
  transform: scale(1.05);
}

/* Ensure content stays above the zoomed background */
.brxe-head-sub-heading-3-col .card-content {
  position: relative;
  z-index: 2;
}


/* Responsive styles for mobile devices */
@media (max-width: 768px) {
  .brxe-head-sub-heading-3-col .cards-container {
    grid-template-columns: 1fr;
    gap: 2px !important;
    margin-left:-10px;
    margin-right:-10px;
  }

  .brxe-head-sub-heading-3-col .card-item {
    min-height: 230px;
    border-radius: 0px;

  }

  .brxe-head-sub-heading-3-col .card-item {
  
  padding-bottom:10px; /* Bottom padding for spacing */
}

.brxe-head-sub-heading-3-col .card-item::before {
  background: rgba(0, 0, 0, 0.4);
}

.brxe-head-sub-heading-3-col .main-heading {
    font-size: 1.8em !important;
}

.brxe-head-sub-heading-3-col{
  padding-bottom:0px !important;
  margin-bottom:0px !important;
    margin-top:0px !important;
}

.brxe-head-sub-heading-3-col .main-content-area {
 padding-left:15px;
 padding-right:15px;
}


}