.hostel-life {
  background: #f9faf9;
  padding: 50px 20px;
  border-top: 1px solid #f3f4f6;
  border-bottom: 1px solid #f3f4f6;
}

.hostel-life-container {
  max-width: 990px;
  margin: 0 auto;
}

/* header */

.hostel-life-header {
  margin-bottom: 35px;
}

.hostel-life-header h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 6px;
}

.hostel-life-header p {
  font-size: 15px;
  color: #4a5565;
}

/* grid */

.hostel-life-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* card */

.life-card {
  padding: 32px 20px;
  border-radius: 25px;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
}

.life-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(0,0,0,0.2);
}

/* gradients */

.life-card.purple {
  background: linear-gradient(135deg, #6d5dfc, #9617fa);
}

.life-card.orange {
  background: linear-gradient(135deg, #ff8a00, #ff3d5a);
}

.life-card.green {
  background: linear-gradient(135deg, #00c897, #00b4d8);
}

/* icon */

.life-icon {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: rgba(255,255,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.life-icon img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}

/* text */

.life-card h3 {
  font-size: 22px;
  margin-bottom: 10px;
}

.life-card p {
  font-size: 13px;
  opacity: 0.9;
  margin-bottom: 20px;
}

/* button */

.life-btn {
  background: #ffffff;
  color: #111827;
  border: none;
  padding: 8px 18px;
  border-radius: 12px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
    transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    letter-spacing 0.25s ease;
}
.life-btn:hover {
  transform: scale(1.08);
  letter-spacing: 0.3px;
}
/* responsive */

@media (max-width: 640px) {
  .hostel-life-grid {
    grid-template-columns: 1fr;
  }
}

@media (hover: hover) and (pointer: fine) {
  .life-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition:
      transform 0.25s ease,
      box-shadow 0.25s ease,
      letter-spacing 0.25s ease;
  }

  .life-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 12px 30px rgba(0,0,0,0.2);
    letter-spacing: 0.3px;
  }

  .life-btn span {
    transition: transform 0.25s ease;
  }

  .life-btn:hover span {
    transform: translateX(4px);
  }

}
