/*** Ultra-Modern Lifestyle Section V2 - Fully Responsive ***/

/* Section Header */
.lifestyle-wrapper h1 {
  text-align: center;
  color: #111;
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 30px;
}

/* Wrapper */
.lifestyle {
  position: relative;
  padding: 40px 0;
  background:
    radial-gradient(circle at top left, rgba(0,123,255,0.08), transparent 60%),
    radial-gradient(circle at bottom right, rgba(0,198,255,0.12), transparent 70%),
    linear-gradient(135deg, #fafcff 0%, #f1f8ff 100%);
  border-top: 1px solid transparent;
  border-bottom: 2px solid transparent;
  border-image: linear-gradient(to right, #ff7d00, #ff9a33);
  border-image-slice: 1;
  overflow: hidden;
  font-family: 'Poppins', sans-serif;
}

/* Each Card */
.lifestyle .lifestyle-item {
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0,123,255,0.1);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  background: rgba(255,255,255,0.85);
}

.lifestyle .lifestyle-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 35px rgba(0,123,255,0.25);
}

/* Image styling */
.lifestyle .lifestyle-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.lifestyle .lifestyle-item:hover img {
  transform: scale(1.1);
}

/* Gradient overlay */
.lifestyle .lifestyle-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,123,255,0.08), rgba(0,198,255,0.03));
  z-index: 1;
  opacity: 1;
  transition: opacity 0.4s ease;
}

.lifestyle .lifestyle-item:hover::before {
  opacity: 0.7;
}

/* Glass content box */
.lifestyle .lifestyle-content {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  z-index: 2;

  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(15px) saturate(150%);
  -webkit-backdrop-filter: blur(15px) saturate(150%);

  border-radius: 16px;
  padding: 20px;
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(0,123,255,0.2);
  border: 1px solid rgba(255,255,255,0.25);
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

.lifestyle .lifestyle-item:hover .lifestyle-content {
  background: rgba(255, 255, 255, 0.22);
  box-shadow: 0 12px 28px rgba(0,123,255,0.3);
}

/* Headline link */
.lifestyle .lifestyle-content a.h4 {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
  color: #ff7d00;
  text-decoration: none;
  text-shadow: 0 1px 3px rgba(0,0,0,0.07);
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.lifestyle .lifestyle-content a.h4:hover {
  color: #ff9a33;
  text-shadow: 0 2px 6px rgba(0,198,255,0.07);
}

/* Meta info (author + date) */
.lifestyle .lifestyle-content .small {
  font-size: 0.85rem;
  opacity: 0.9;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.07);
}

.lifestyle .lifestyle-content .fa-calendar-alt {
  color: #00c6ff;
}

/* Responsive tweaks */

/* Mobile */
@media (max-width: 767px) {
  .lifestyle {
    padding: 30px 10px;
  }
  .lifestyle .lifestyle-content {
    bottom: 10px;
    left: 10px;
    right: 10px;
    padding: 12px;
  }
  .lifestyle .lifestyle-content a.h4 {
    font-size: 0.95rem;
  }
}

/* Extra small devices: stack cards */
@media (max-width: 576px) {
  .lifestyle .col-lg-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }
  .lifestyle .lifestyle-item img {
    height: 200px; /* fixed height for small screens */
  }
  .lifestyle .lifestyle-content a.h4 {
    font-size: 0.9rem;
  }
  .lifestyle .lifestyle-content .small {
    font-size: 0.8rem;
  }
}