/* Service List */
.service-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--wp--preset--spacing--20);
  margin-top: var(--wp--preset--spacing--20);
  margin-bottom: var(--wp--preset--spacing--20);
  position: relative;
  z-index: 1;
}

/* Flip Card Styling */
.flip-card {
  perspective: 1000px;
  width: 260px; /* Fixed width */
  height: 220px; /* Reduced height */
  margin: 1rem auto; /* Centered card */
  border-radius: 5px;
  position: relative;
  transform-style: preserve-3d;
  border: 2px dashed #fff;
  border-radius: 5px;
}

.flip-card-inner {
  width: 100%;
  height: 100%;
  transition: transform 0.6s ease-in-out;
  transform-style: preserve-3d;
  position: relative;
  border: 2px dashed #225a4b;
  border-radius: 5px;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 5px;
  background-color: #004d3e;
  background: linear-gradient(135deg, #004d40 0%, #00796b 100%);
  color: #ffffff;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  text-align: center;
}

.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 5px;
  background: linear-gradient(to bottom right, rgba(255, 255, 255, 0.9), rgba(200, 230, 220, 0.9));
  background-size: cover;
  background-position: center;
  color: #225a4b;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  text-align: center;
}


.flip-card-back {
  transform: rotateY(180deg);
  flex-direction: column;
  font-size: 0.9rem;
}

.flip-card-back ul {
  list-style: square;
  padding-left: 1rem;
  margin: 0;
  text-align: left;
  list-style-position: inside; 
}

*, *::before, *::after {
  box-sizing: border-box;
}

.flip-card-back li {
  margin-bottom: 0.5rem;
}

/* Why Inclimate Section */
hr.section-divider {
  border: none;              
  height: 1px; 
  background-color: #00796b;
  width: 80%;         
  margin: 10px auto;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.section-title {
  text-align: center;
  font-size: 2.5em;
  color: #004d40;
  margin-bottom: 2%;
  margin-top: 1%;
}
 
.feature-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding: 1rem;
  overflow: visible;
  position: relative;
}

.feature-item-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.feature-item {
  background: #fff;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.5s ease;
  text-align: center;
  background-color: #f0f0f0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  flex-grow: 1;
  max-width: 280px;
  position: relative;
  z-index: 1;
}

.feature-item:hover {
  transform: translateY(-10px);
  box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.2);
}

.icon-container {
  font-size: 40px;
  color: #225a4b;
  margin-bottom: 10px;
}

.feature-item h3 {
  font-size: 1.5em;
  color: #225a4b;
  margin-bottom: 15px;
}

.feature-item p {
  font-size: 1em;
  color: #00796b;
  line-height: 1.5;
}

.sustain-section {
  background: linear-gradient(to right, #c3d3a3 0%, #a2d9af 50%, #c3d3a3 100%) !important;
}

@media (max-width: 768px) {
  .wp-block-columns {
      grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .wp-block-columns {
      grid-template-columns: 1fr;
  }
}

/* Medium screens: 2 items per row */
@media (max-width: 992px) {
  .feature-cards {
    grid-template-columns: 1fr;
  }
}

/* Small screens: 1 item per row */
@media (max-width: 576px) {
  .feature-cards {
    grid-template-columns: 1fr;
  }
}