/* Bento Grid Section Layout */
.paragraph--stats_bento_grid{
  /* max-width: 1326px; */
  max-width: 97%;
  width: 97%;
}

.bento-grid-container {
  /* display: grid; */
  display: flex;
  grid-template-columns: 2fr 1.2fr 1.2fr;
  grid-auto-rows: 1fr;
  gap: 1.5rem;
  min-height: 600px;
}

/* Base Card Styling */
.bento-card {
  position: relative;
  border-radius: 2rem;
  overflow: hidden;
  /* padding: 1rem 2.2rem; */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.bento-card:hover {
  transform: translateY(-5px);
  /* box-shadow: 0 20px 40px rgba(0,0,0,0.1); */
}

/* 1. Featured Hero Card Styles */
.bento-card--hero {
  color: #ffffff;
  grid-column: 1 / 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.bento-card--hero .bento-card__bg-container {
 position: relative;
}
.bento-card__bg-container .field--name-field-bg-image{
  max-width: 100%;
  height: 571px;
  /* width: 672px; */
}

.bento-card--hero .bento-card__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bento-card__bg-container .field--name-field-bg-image::after{
  content: "";
  background: url(../images/bentoherobk.webp) no-repeat;
  position: absolute;
  z-index: 9999;
  width: 300px;
  height: 150px;
  right: -163px;
  bottom: -13px;
  z-index: 0;
}

.bento-card--hero .bento-card__content {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  margin: auto;
  width: 90%;
  padding-top: 1.7rem;
}

.bento-card--hero .bento-card__stat-number {
  font-size: 3rem;
  font-weight: 600;
  line-height: 1.1;
  font-family: 'Inter', sans-serif;
}

.bento-card--hero .bento-card__headline {
  font-size: 3rem;
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  max-width: 90%;
}

.bento-card--hero .bento-card__description {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 80%;
  margin-bottom: 2rem;
}
.bento-item--hero .bento-card__cta a{
  font-family: 'Rubik';
  font-weight: 500;
  font-size: 12px;
  background: rgba(255, 255, 255, 1);
  color: rgba(47, 53, 115, 1);
  padding: 14px 19px;
}

/* Arrow Icon Utility */
.bento-card__arrow-icon {
  position: absolute;
  bottom: 2rem;
  right: 36px;
  width: 60px;
  height: 60px;
  background: #3399FF;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: background 0.3s ease;
}
/* Deleted messy positioning */

.bento-card:hover .bento-card__arrow-icon {
  background: #007FFF;
}

/* 2. Twin Counter Cards Styles */
.bento-stack {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  height: 100%;
}

.bento-card--small {
  /* padding: 2rem;
  background: #F3F0FF;
  color: #001F3F;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end; */
}

.inner-container-counter-2 {
  position: relative;
}
.inner-container-counter-2 .bento-card__content{
  position: absolute;
  bottom: 2rem;
  color: #FFF;
  left: 8%;
}
.inner-container-counter-1 .bento-card__content{
  position: absolute;
  bottom: 2rem;
  left: 0;
  right: 0;
  margin: auto;
  width: 82%;
}

.bento-card--small .bento-card__stat-number {
  font-size: 3rem;
  font-weight: 600;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.bento-card--small .bento-card__label {
  font-size: 1rem;
  opacity: 0.8;
  font-weight: 500;
}

.bento-card--small .bento-card__image{
  height: 264px;
  /* width: 320px; */
}
.bento-card__image .field--name-field-card1-image{
  height: 294px;
}

.bento-card--small .bento-card__image img {
  height: 294px;
  width: 100%;
  object-fit: cover;
}
.bento-card--small .inner-container-counter-1{
  position: relative;
  overflow: hidden;
}

/* 3. Vertical Feature Card Styles */
.bento-card--vertical {
  /* background: linear-gradient(180deg, #FBF8FF 0%, #EDE7FF 100%);
  color: #001F3F;
  display: flex;
  flex-direction: column;
  justify-content: flex-end; */
  position: relative;
}
.bento-card__content-can{
  position: absolute;
  bottom: 10%;
  left: 32px;
}

.bento-card--vertical .field--name-field-bg-image img{
  height: 580px;
  width: 100%;
  object-fit: cover;
}
.bento-card--vertical .field--name-field-bg-image::before {
  content: '';
  background: url(../images/bento-verticle-angle-bg.webp) no-repeat;
  position: absolute;
  z-index: 2;
  right: 0;
  height: 110px; /* Specific height for the angle graphics */
  width: 110px;
  background-position: top right;
  top: 0;
  background-size: contain;
}

.bento-card--vertical .bento-card__header .bento-card__arrow-icon{
  bottom: unset;
  top: 10px;
  right: 10px;
  z-index: 9;
}

.bento-card--vertical .bento-card__gallery {
  display: flex;
  gap: -10px; /* Slight overlap */
  margin-bottom: 2rem;
}

.bento-card--vertical .bento-card__gallery > div {
  display: flex;
  gap: 5px;
}

.bento-card--vertical .bento-card__gallery img {
  /* width: 45px;
  height: 60px;
  border-radius: 0.5rem;
  border: 2px solid white;
  object-fit: cover; */
}

.bento-card--vertical .bento-card__stat-number {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.bento-card--vertical .bento-card__headline {
  font-size: 2.2rem;
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 1rem;
  width: 75%;
}

.bento-card--vertical .bento-card__description {
  font-size: 1rem;
  opacity: 0.8;
  margin-bottom: 2rem;
  width: 84%;
}

.bento-card--vertical .btn-primary {
  background: linear-gradient(108.66deg, #30A3FF 5.43%, #2F3573 97.4%);
  color: #FFFFFF !important;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  padding: 14px 32px;
  border-radius: 50px;
  border: none;
  font-size: 12px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  display: inline-block;
  text-decoration: none;
}
.bento-card__content .field--name-field-description{
  padding-right: 1.9rem;
}
.bento-item.bento-item--hero{
  width: 48%;
}
.bento-item--twin{
  width: 28%;
}
.bento-item--vertical{
  width: 29%;
}
/* Responsive Grid */
@media (max-width: 1200px) {
  .bento-grid-container {
    flex-wrap: wrap;
  }
  .bento-item--vertical {
    grid-column: 1 / span 2;
  }
}

@media (max-width: 768px) {
  .bento-grid-container {
    display: flex;
    flex-direction: column;
    height: auto;
  }
  .images-stack-column{
    display: block !important;
    width: 50%;
  }
  .bento-card__bg-container .field--name-field-bg-image,
  .bento-card--hero .bento-card__bg img,
  .bento-card--small .bento-card__image img,
  .bento-card--vertical .field--name-field-bg-image img {
    height: auto !important;
    max-height: 400px;
    object-fit: cover !important;
  }
}

