.card_gallery {
  position: relative;
}

.card_gallery .card_inner {
  /* border-radius and padding now controlled by style fields in module.html */
}
  overflow: hidden;
  position: relative;
  white-space: normal;
  height: 100%;
}

.card_gallery .icon_box .icon_inner {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: left;
  width: 80px;
  height: 80px;
  font-size: calc(80px - 10px);
  margin-bottom: 10px;
}

.card_gallery .icon_box svg {
  width: 1em;
  height: 1em;
  display: block;
  vertical-align: middle;
}

.card_gallery .icon_box.bgAdded .icon_inner {
  border-radius: 100%;
  overflow: hidden;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  font-size: 40px;
  text-align: left !important;
}

.card_gallery .icon_box.small_sz .icon_inner {
  width: 50px;
  height: 50px;
  font-size: calc(50px - 10px);
}

.card_gallery .icon_box.small_sz.bgAdded .icon_inner {
  font-size: calc(40px - 10px);
}

.card_gallery .icon_box.large_sz .icon_inner {
  width: 100px;
  height: 100px;
  font-size: calc(100px - 15px);
}

.card_gallery .icon_box.large_sz.bgAdded .icon_inner {
  font-size: calc(80px - 15px);
}

.card_gallery .icon_box.bgAdded img, .card_gallery .icon_box.medium_sz.bgAdded img {
  width: 40px;
}

.card_gallery .icon_box.small_sz.bgAdded img {
  width: 30px;
}

.card_gallery .icon_box.large_sz.bgAdded img {
  width: 65px;
}

.card_gallery .icon_box span.icon_img.icon_sp {
  line-height: 0;
}

.card_gallery .card_item.text_center .icon_inner {
  margin-left: auto;
  margin-right: auto;
}

.card_gallery .card_item.text_left .btn_row {
  -webkit-box-pack: start;
  -ms-flex-pack: start;
  justify-content: flex-start;
}

.card_gallery .card_item.text_right .icon_inner {
  margin-left: auto;
}

.card_gallery .card_item.text_right .btn_row {
  -webkit-box-pack: end;
  -ms-flex-pack: end;
  justify-content: flex-end;
}

.card_gallery .card_item.text_center .btn_row {
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: flex-start;
}

.card_gallery .card_box {
  position: relative;
  z-index: 5;
  padding: 24px;
  border-radius: 24px;
}

.card_gallery .card_item.hoverAdde .card_inner:hover .overlay_bg {
  visibility: visible;
  pointer-events: auto;
}

.card_gallery .card_inner:hover .overlay_bg.custom {
  opacity: 1;
}

.card_gallery .card_item .overlay_bg {
  opacity: 0;
  pointer-events: none;
  -webkit-transition: all 0.2s ease;
  -o-transition: all 0.2s ease;
  transition: all 0.2s ease;
}

.card_gallery .hover_img.bg_el {
  opacity: 0;
  -webkit-transition: all 0.2s ease;
  -o-transition: all 0.2s ease;
  transition: all 0.2s ease;
  z-index: 0;
}

.card_gallery .card_item.hoverAdde .card_inner:hover .hover_img.bg_el {
  opacity: 1;
}

.card_gallery .card_item.shadowAdded .card_inner {
  -webkit-box-shadow: 0px 2px 10px rgb(22 22 22 / 10%);
  box-shadow: 0px 2px 10px rgb(22 22 22 / 10%);
}

.card_gallery .card_content > *:last-child {
  margin-bottom: 0;
}

.card_gallery .card_content + .btn_row {
  margin-top: 24px;
}

.card_gallery .card_item .main_overlay_bg {
  -webkit-transition: all all 0.2s ease;
  -o-transition: all all 0.2s ease;
  transition: all all 0.2s ease;
}

.card_gallery .card_item.hoverAdde .card_inner:hover .main_overlay_bg {
  opacity: 0;
}

.card_gallery span.icon_img img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
}

.card_gallery .card_item {
  cursor: default;
}

.card_gallery .card_item h5 {
  margin-bottom: 10px;
}

.card_gallery .card_box .it_title {
  margin-bottom: 0.6rem;
}

.card_gallery .bottom_row.notshadow .rowGap15 {
  row-gap: 0;
}

.card_gallery .bottom_row.masonadded .card_item {
  margin-bottom: 20px;
}

.card_gallery .card_item.shadowAdded:nth-child(3)~.card_item.shadowAdded {
  margin-bottom: 10px;
}

.card_content {
text-align: left;
}

.card_gallery. {
  position: relative;
  overflow: hidden;
}

.card_gallery. .section_background_image {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.2; /* Puedes ajustar esto según el diseño */
}

.card_gallery. .page-center {
  position: relative;
  z-index: 1;
}

.card-pill-tag {
  display: table;
  color: #333;
  border-radius: 999px;
  padding: 0.19em 0.85em;
  font-size: 0.7em;
  font-weight: 400;
  margin-bottom: 0.5em;
  border: 2px solid;
}

/* Color variations */
.tag-early-stage {
  border-color: #FF6B3B;
  color: #FF6B3B;
}

.tag-growth {
  border-color: #1A3D74;
  color: #1A3D74;
}

.tag-expansion {
  border-color: #FFFFFF;
  color: #FFFFFF;
}

.tag-scaling {
  border-color: #FFFFFF;
  color: #FFFFFF;
}

.tag-leadership {
  border-color: #FFFFFF;
  color: #FFFFFF;
}

.tag-networking {
  border-color: #FFFFFF;
  color: #FFFFFF;
}

.btn-early-stage .hs-button {
  background-color: #FF6B3B;
  color: #141517;
}

.btn-growth .hs-button {
  background-color: #1A3D74;
  color: #FFFFFF;
}

.btn-expansion .hs-button {
  background-color: #fff;
  color: #021835;
}

.btn-scaling .hs-button {
  background-color: #C1FF72;
  color: #141517;
}

.btn-leadership .hs-button {
  background-color: #C292C1;
  color: #fff;
}

.btn-networking .hs-button {
  background-color: #FFFFFF;
  color: #000000;
}

/* Hover (opcional) */
.btn-early-stage .hs-button:hover {
  background-color: #fff;
  color: #f15a24;
  border: 2px solid #f15a24;
}

@media (max-width: 767px){
  .card_gallery .bottom_row.notshadow .rowGap15 {
    row-gap: 20px;
  }
}
