/* ==========================================================
   EXPANDABLE FEATURE GRID — UPDATED WITH ANGLE SHAPE
   ========================================================== */

/* Wrapper & Header */
.values-feature-grid__header {
  text-align: center;
  margin-bottom: 40px;
}

.values-feature-grid__wrapper {
  display: grid;
  gap: 20px;
  margin: 0 auto;
  align-items: stretch;
  
}

.values-feature-grid__wrapper.columns-2 {
  grid-template-columns: repeat(2, 1fr);
}

.values-feature-grid__wrapper.columns-3 {
  grid-template-columns: repeat(3, 1fr);
}

/* MAKE TABLET 2-COLUMN (NEW RULE ADDED BELOW FOR MAX-WIDTH:1024px) */
@media (max-width: 900px) {
  .values-feature-grid__wrapper.columns-2,
  .values-feature-grid__wrapper.columns-3 {
    grid-template-columns: 1fr;
  }
}

/* Each item fills available height */
.values-feature-grid__item {
  display: flex;
  flex-direction: column;
}

.values-feature-grid__inner {
  padding: 15px;
  background: #F6F6F6;
  display: flex;
  flex-direction: column;
  justify-content: center; /* keep content top-aligned */
  border-radius: 25px;
  border: 2px solid #EAD321;
  transition: background 0.3s ease, border-color 0.3s ease;
  height: 80px; /* fixed height for all cards */
  overflow: hidden;
}

.style-2 .values-feature-grid__inner {
  padding: 20px !important;
  border-radius: 25px !important;
}

.values-feature-grid__icon {
  display: flex;
  align-items: center;
  justify-content: center; /* centers icons horizontally */
  width: 100%;
  gap: 15px;
}

.style-2 .values-feature-grid__icon {
  margin-bottom: 0 !important;
}

/* Check Icon */
.check-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

/* Expand/Collapse Icon */
.expand-collapse-icon {
  width: 24px;
  height: auto !important;
  display: block;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

/* Title */
.feature-title {
  color: #121315;
  font-weight: 700;
  transition: color 0.3s ease;
  margin: 0;
}

.feature-title.expanded {
  color: #fff;
}

.values-feature-grid__icon > p {
  color: #121315;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  margin-bottom: 0;
}

/* Description Block */
.values-feature-grid__text-block {
  margin-top: 15px;
  border: 2px solid #3368C6;
  border-radius: 25px;
  background: #fff;
  padding: 26px;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  color: #121315;
  position: relative;
  overflow: hidden;
}

.values-feature-grid__text-block.expanded {
  color: #fff;
}

/* Description Text */
.values-feature-grid__text,
.values-feature-grid__text > p {
  color: #121315;
  font-size: 15px;
  font-style: normal;
  font-weight: 300;
  line-height: 1.5;
  margin-bottom: 0;
}

/* ==========================================================
   ANGLE SHAPES INSIDE TEXT AREA
   ========================================================== */

/* Bottom-right angle (existing) */
.angle-shape-bottom {
  background: url(https://146481062.fs1.hubspotusercontent-eu1.net/hubfs/146481062/right-angle.svg) no-repeat;
  background-position: 100% 100%;
  background-size: contain;
  bottom: 5px;
  height: 70px;
  pointer-events: none;
  position: absolute;
  right: 5px;
  width: 120px;
  z-index: 2;
}

/* Top-left angle (flipped along X & Y) */
.angle-shape-top {
  background: url(https://146481062.fs1.hubspotusercontent-eu1.net/hubfs/146481062/left-angle.svg) no-repeat;
  background-position: 0 0;
  background-size: contain;
  top: 5px;
  left:5px;
  height: 70px;
  width: 120px;
  pointer-events: none;
  position: absolute;
  z-index: 2;
}

@media (max-width: 992px) {
  .angle-shape-bottom {
    right: 10px;
    top: auto;
    bottom: 10px;
    width: 100px;
    height: 120px;
  }
  .angle-shape-top {
    left: 10px;
    top: 10px;
    width: 100px;
    height: 120px;
  }
}

.values-feature-grid__item.disabled .values-feature-grid__inner {
  background: #F6F6F6;
  border-color: #F0F0F0;
}

.values-feature-grid__item.disabled .feature-title {
  color: #C2C2C2;
}

.values-feature-grid__item.disabled .check-icon {
  content: url('https://146481062.fs1.hubspotusercontent-eu1.net/hubfs/146481062/disabled-icon-1.svg');
}

.values-feature-grid__item.disabled .expand-collapse-icon {
  opacity: 0.4;
  display: none; /
}

@media (max-width: 1024px) and (min-width: 601px) {
  .values-feature-grid__wrapper.columns-3,
  .values-feature-grid__wrapper.columns-2 {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 1024px) and (min-width: 601px) {
  .values-feature-grid__wrapper {
    padding-left: 20px;
    padding-right: 20px;
  }
}