/* 
   Emirify Installation and Maintenance - CSS Fixes
   Author: Myrix Labs
   Version: 1.0
*/

/* Fix for service card text overlapping images */
.service-card {
  position: relative;
}

.service-img {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-icon {
  position: absolute;
  top: 180px;
  left: 25px;
  width: 50px;
  height: 50px;
  background-color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  z-index: 2;
}

.service-content {
  padding-top: 30px;
  position: relative;
  background-color: white;
  z-index: 1;
}

/* Fix for division cards */
.division-card {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 30px;
  height: 300px;
}

.division-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.division-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.2), transparent);
  padding: 30px 20px 20px;
  color: white;
  transition: var(--transition);
}

/* Ensure text is readable on division overlays */
.division-overlay h3 {
  color: white;
  margin-bottom: 10px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

.division-overlay p {
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}
