/* ===== Content Section ===== */
.content {
  padding: 40px 20px;
  max-width: 1000px;
  margin: auto;
}

.content h2 {
  color: var(--primary);
  margin-top: 40px;
}

/* ===== Homepage Sections ===== */.home-sections {
  display: flex;              /* horizontal layout */
  flex-wrap: wrap;            /* allows wrapping on smaller screens */
  gap: 20px;                  /* spacing between cards */
  justify-content: center;    /* center them */
  margin: 40px auto;
  max-width: 1200px;          /* wider container */
}

.section {
  flex: 1 1 300px;            /* each card takes min 300px, grows if space */
  max-width: 350px;           /* prevents cards from stretching too wide */
  background: var(--accent);
  color: var(--primary);
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.section:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* ===== Responsive Fix for Small Screens ===== */
@media (max-width: 768px) {
  .home-sections {
    flex-direction: column;   /* stack vertically on mobile */
    align-items: center;
  }

  .section {
    width: 100%;
    max-width: 500px;
  }
}

/* ===== Services Section ===== */
.services {
  display: flex;              /* horizontal layout */
  flex-wrap: wrap;            /* allows wrapping on smaller screens */
  gap: 30px;                  /* spacing between cards */
  justify-content: center;    /* center them */
  margin: 40px auto;
  max-width: 1200px;
}

.service {
  flex: 1 1 300px;            /* responsive width */
  max-width: 350px;           /* prevents cards from stretching too wide */
  background: var(--accent);  /* creamy yellow background */
  color: var(--primary);      /* dark green text */
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.service:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.service img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 15px;
}

.service h2 {
  margin: 10px 0;
  font-size: 1.2rem;
  color: var(--primary);
}

.service ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service ul li {
  margin: 6px 0;
  font-size: 0.9rem;
  color: var(--text);
}

/* ===== Responsive Fix for Small Screens ===== */
@media (max-width: 768px) {
  .services {
    flex-direction: column;   /* stack vertically on mobile */
    align-items: center;
  }

  .service {
    width: 100%;
    max-width: 500px;
  }
}