@import url('style.css');

/* ---------------------------------
   Life Link Resources — Page Shell
---------------------------------- */

.life-main {
  padding: 3rem 0 4rem; /* reduced overall height */
  background: #f8fafc;
}

.life-hero {
  max-width: 760px;
  margin: 0 auto 2.2rem;
}

.life-kicker {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #64748b;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.life-hero h1 {
  font-size: clamp(2rem, 3vw, 2.6rem);
  margin: 0 0 0.75rem;
  color: #0f172a;
}

.life-hero p {
  max-width: 640px;
  font-size: 0.98rem;
  line-height: 1.7;
  color: #475569;
  margin: 0.2rem 0 0;
}

/* ---------------------------------
   Slider Section
---------------------------------- */

.life-slider-section {
  background: #f1f5f9;
  padding: 2rem 0 2.2rem; /* height controlled */
  border-radius: 24px;
  margin-bottom: 2.5rem;
}

.life-slider-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 1.1rem; /* tighter */
}

.life-slider-header h2 {
  font-size: 1.4rem;
  margin: 0;
  color: #0f172a;
}

.life-slider-note {
  font-size: 0.9rem;
  color: #64748b;
}

/* ---------------------------------
   Slider Shell & Track
---------------------------------- */

.life-slider-shell {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.life-slider-track {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  gap: 1.75rem; /* spacing between cards */
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.4rem 0.25rem; /* reduced vertical padding */
  scroll-behavior: smooth;
}

/* Hide scrollbar but keep scroll */
.life-slider-track::-webkit-scrollbar {
  display: none;
}
.life-slider-track {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* ---------------------------------
   Cards
---------------------------------- */

.life-card {
  flex: 0 0 320px; /* larger cards */
  max-width: 320px;
  background: #ffffff;
  border-radius: 20px;
  padding: 1.6rem 1.5rem 1.4rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  text-decoration: none;
  color: inherit;
  scroll-snap-align: start;
  border: 1px solid #e2e8f0;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.life-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
  border-color: #bae6fd;
}

.life-card__tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 0.55rem;
}

.life-card__chip {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #0ea5e9;
  margin-right: 0.4rem;
}

.life-card__title {
  font-size: 1.15rem;
  margin: 0 0 0.45rem;
  color: #0f172a;
}

.life-card__body {
  font-size: 0.95rem;
  line-height: 1.65;
  color: #64748b;
  margin: 0 0 0.9rem;
}

.life-card__cta {
  font-size: 0.95rem;
  font-weight: 600;
  color: #0284c7;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.life-card__cta svg {
  width: 14px;
  height: 14px;
}

/* ---------------------------------
   Card Accent Colors
---------------------------------- */

.life-card--blue   { border-top: 4px solid #0ea5e9; }
.life-card--amber  { border-top: 4px solid #f59e0b; }
.life-card--rose   { border-top: 4px solid #fb7185; }
.life-card--violet { border-top: 4px solid #8b5cf6; }
.life-card--teal   { border-top: 4px solid #14b8a6; }

/* ---------------------------------
   Slider Arrows
---------------------------------- */

.life-arrow {
  border: none;
  background: #e2e8f0;
  color: #0f172a;
  width: 44px; /* slightly larger */
  height: 44px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition:
    background 0.15s ease,
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.life-arrow:hover {
  background: #cbd5f5;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.18);
}

.life-arrow:focus-visible {
  outline: 2px solid #0ea5e9;
  outline-offset: 2px;
}

/* ---------------------------------
   Responsive Tweaks
---------------------------------- */

@media (max-width: 768px) {
  .life-main {
    padding-top: 2.5rem;
  }

  .life-slider-section {
    border-radius: 18px;
    padding: 1.8rem 0 2rem;
  }

  .life-slider-shell {
    align-items: stretch;
  }

  .life-arrow {
    display: none; /* swipe only on mobile */
  }

  .life-slider-track {
    padding-inline: 1rem;
  }

  .life-card {
    flex: 0 0 280px;
    max-width: 280px;
  }
}
