/* General */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  background: #f8fafc;
  color: #333;
}

/* Navbar styles handled by navbar.css */
/* Hero */
.hero {
  background: url('images/elderly-hero.jpg') center/cover no-repeat;
  color: #fff;
  text-align: center;
  padding: 160px 20px 80px;
  /* Adjusted topl padding for navbar overlay */
  position: relative;
  /* margin-top: 1px; Removed */
}

.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 31, 51, 0.6);
}

.hero-text {
  position: relative;
  z-index: 2;
}

.hero-text h2 {
  font-size: 3rem;
  margin-bottom: 15px;
  color: #14c9da;
  background-color: #3333338c;
}

.hero-text p {
  font-size: 1.3rem;
  margin-bottom: 20px;
}

.btn {
  background: #15747d;
  color: #0a1f33;
  padding: 14px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
}

.btn:hover {
  background: #c58909;
}

.elderly-services {
  background: #187074;
  /* orange background */
  color: white;
  padding: 1rem 0;
  overflow: hidden;
  position: relative;
  margin-top: 20px;
  margin-bottom: -60px;
}

.marquee {
  white-space: nowrap;
  overflow: hidden;
  position: relative;
}

.marquee-content {
  display: inline-block;
  padding-left: 100%;
  /* push text outside initially */
  animation: slide 15s linear infinite;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 1px;
}

@keyframes slide {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-100%);
  }
}

/* Services */
.services {
  padding: 70px 30px;
  text-align: center;
}

.services h2 {
  font-size: 2.2rem;
  margin-bottom: 40px;
  color: #206268;
}

.service-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.card:hover {
  transform: translateY(-5px);
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card h3 {
  margin: 20px 0 10px;
  color: #0a1f33;
}

.card p {
  padding: 0 20px 20px;
  color: #555;
  font-size: 1rem;
}

/* Testimonials */
.testimonials {
  background: #1f788286;
  padding: 60px 20px;
  text-align: center;
}

.testimonials h2 {
  font-size: 2rem;
  margin-bottom: 25px;
}

blockquote {
  font-style: italic;
  margin: 15px auto;
  max-width: 700px;
  color: #444;
  line-height: 1.6;
}

/* Footer */
footer {
  background: #0a1f33;
  color: #fff;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
}