/* Features Section Styling - canonical final version
   - transparent cards (no white box)
   - lighter icon circle so PNG details remain visible
   - responsive scaling and minimal shadows for depth
*/

:root {
  --brand: #bb9356;
}

#features-section .heading--title {
  color: #333;
  margin-bottom: 60px;
  font-weight: 600;
}

/* Card container */
.feature-image-card {
  background: transparent;
  border-radius: 8px;
  padding: 18px 10px 8px;
  text-align: center;
  box-shadow: none;
  transition: none;
  height: auto;
  border: none;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.feature-image-card:hover {
  transform: none;
  box-shadow: none;
}

/* Icon wrapper */
.feature-image-wrapper {
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 120px;
  height: 120px;
  background: rgba(187, 147, 86, 0.08);
  border-radius: 18px;
  position: relative;
}

.feature-main-image {
  height: 120px;
  width: 120px;
  object-fit: contain;
  position: relative;
  z-index: 2;
}
.feature-title {
  font-size: 18px;
  font-weight: 700;
  color: #263238;
  margin: 0;
  line-height: 1.2;
  text-align: center;
}

.feature-description {
  font-size: 14px;
  color: #6c757d;
  line-height: 1.5;
  margin: 0;
  text-align: center;
  max-width: 240px;
}

@media (max-width: 991px) {
  .feature-image-card {
    margin-bottom: 18px;
  }
}

@media (max-width: 767px) {
  #features-section {
    padding: 40px 0;
  }
  .feature-image-card {
    padding: 12px 10px;
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .feature-image-wrapper {
    width: 88px;
    height: 88px;
    margin: 0 auto 12px;
  }
  .feature-main-image {
    width: 48px;
    height: 48px;
  }
  .feature-title {
    font-size: 16px;
  }
  .feature-description {
    font-size: 14px;
  }
}

@media (min-width: 1200px) {
  #features-grid .col-md-3 {
    padding-left: 12px;
    padding-right: 12px;
  }
}
@media (min-width: 992px) and (max-width: 1199px) {
  #features-grid .col-md-3 {
    padding-left: 10px;
    padding-right: 10px;
  }
}
@media (max-width: 991px) {
  #features-grid .col-md-3 {
    padding-left: 8px;
    padding-right: 8px;
  }
}

/* Force five items per row on wide desktops by overriding column widths
   Assumes items use `.col-md-3` by default — we target inside #features-grid
*/
@media (min-width: 1400px) {
  #features-grid .col-md-3 {
    flex: 0 0 20%;
    max-width: 20%;
    padding-left: 8px;
    padding-right: 8px;
  }
  /* slightly reduce icon wrapper so five across feel balanced */
  .feature-image-wrapper {
    width: 100px;
    height: 100px;
  }
  .feature-main-image {
    width: 100px;
    height: 100px;
  }
  .feature-description {
    max-width: 200px;
  }
}

@media (min-width: 1200px) and (max-width: 1399px) {
  #features-grid .col-md-3 {
    flex: 0 0 20%;
    max-width: 20%;
    padding-left: 8px;
    padding-right: 8px;
  }
  .feature-image-wrapper {
    width: 110px;
    height: 110px;
  }
  .feature-main-image {
    width: 100px;
    height: 100px;
  }
  .feature-description {
    max-width: 220px;
  }
}

/* Target our explicit feature column class to enforce five-per-row layout
   and defensively reset bootstrap column floats if present.
*/
@media (min-width: 1200px) {
  #features-grid .col-feature {
    width: 20% !important;
    flex: 0 0 20% !important;
    max-width: 20% !important;
    float: left !important;
    display: block !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
  }
}

#features-section .container {
  position: relative;
}
#features-section .heading {
  position: relative;
  z-index: 2;
}

#features-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.03) 0%,
    rgba(0, 0, 0, 0.01) 100%
  );
  pointer-events: none;
}
