.valuableSection {
  padding: 40px 0;
}

.card {
  background-color: #202020;
  background-image: url("../../img/cardImg.png");
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding: 30px;
  height: 320px;
  transition: transform 0.3s, background-color 0.3s, box-shadow 0.3s ease, border 0.3s ease;
}

.card:hover .fa-solid {
  color: white !important; /* Ensure it overrides existing styles */
}

@media (min-width: 768px) and (max-width: 1199px) {
  .card {
    height: 400px;
  }
}

.card:hover {
  transform: translateY(-10px) scale(1.05) translate(10px, -5px);
  background-color: #000;
  box-shadow: 0 10px 20px rgba(152, 188, 98, 0.8);
  border: 3px solid #2D5F2C; 
}

.image-container {
  display: flex;
  justify-content: flex-start; /* Default behavior for desktop */
  align-items: center;
  height: 80px;
  width: 100%;
  margin-bottom: 60px;
  transition: background-color 0.3s;
}


.card-img {
  max-width: 100%;
  height: auto;
  display: block;
}


.card-title {
  font-size: 1.25rem;
  margin-bottom: 15px;
  color: whitesmoke;
  margin-top: -30px;
}

.card-description {
  color: white;
  font-size: 16px;
}

/* Mobile responsive styling */
@media (max-width: 767px) {
  .card {
    padding: 15px;
    height: auto;
  }

  .image-container {
    justify-content: center; /* Center the image only on mobile */
    height: auto;
  }

  .card-title {
    font-size: 1.1rem;
  }

  .card-description {
    font-size: 0.875rem;
  }
}

/* Card about us */

.cardAbout {
  background-color: #202020;
  background-image: url("../../img/aboutCard.png");
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding: 30px;
  height: 250px; /* Default height for desktop */
  transition: transform 0.3s, background-color 0.3s, box-shadow 0.3s ease, border 0.3s ease;
}

/* Adjust height for larger screens */
@media (min-width: 768px) and (max-width: 1199px) {
  .cardAbout {
    height: 400px;
  }
}

/* Mobile responsive styling */
@media (max-width: 767px) {
  .cardAbout {
    height: 200px; /* Adjust height to 150px for mobile view */
    padding: 20px;
  }

  .cardAbout-title {
    font-size: 1.1rem;
  }

  .cardAbout-description {
    font-size: 0.875rem;
  }
}

.cardAbout:hover {
  transform: translateY(-10px) scale(1.05) translate(10px, -5px);
  background-color: #000;
  box-shadow: 0 10px 20px rgba(152, 188, 98, 0.8);
  border: 3px solid #2D5F2C;
}

.cardAbout:hover .fa-solid {
  color: #FAF9F6 !important; /* Ensure it overrides existing styles */
}
.cardAbout:hover .fa-regular {
  color: #FAF9F6 !important; /* Ensure it overrides existing styles */
}

.cardAbout-img {
  max-width: 100%;
  height: auto;
  display: block;

}

.cardAbout-title {
  font-size: 1.25rem;
  margin-bottom: 15px;
  color: whitesmoke;
  margin-top: -30px;
}

.cardAbout-description {
  color: white;
  font-size: 16px;
}
