/* Import Amaranth font */
@import url('https://fonts.googleapis.com/css2?family=Amaranth&display=swap');

/* --- Service Section --- */
.service-cards {
  font-family: 'Amaranth', sans-serif;
  text-align: center;
  padding: 50px 20px;
  overflow: hidden; /* hides cards while scrolling */
  position: relative;
  background-color: #fff;
}

.section-heading {
  font-size: 3rem;
  font-weight: bold;
  color: #2E5932;
  margin-bottom: 30px;
}

/* Scrolling wrapper */
.scroll-content {
  display: inline-flex;
  gap: 25px;
  animation: scrollLeft 45s linear infinite;
  will-change: transform;
}

.scroll-content:hover {
  animation-play-state: paused; /* pause scroll on hover */
}

/* Infinite scroll animation */
@keyframes scrollLeft {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Card Base */
.card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  width: 280px;
  height: 360px;
  transition: transform 0.4s ease;
  flex-shrink: 0; /* prevent resizing during scroll */
}

/* Card Image */
.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.card:hover img {
  transform: scale(1.1);
}

/* Overlay */
.card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 60, 30, 0.85);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  padding: 20px;
}

.card-overlay h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.card-overlay p {
  font-size: 1rem;
  line-height: 1.4;
}

/* Circle Icon */
.card-icon {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #7fbf4d;
  border-radius: 50%;
  padding: 15px;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease;
}

.card-icon img {
  width: 35px;
  height: 35px;
  transition: transform 0.3s ease;
}

.card:hover .card-icon {
  transform: translateX(-50%) scale(1.15);
}

.card:hover .card-icon img {
  transform: scale(1.2);
}

/* Fading edges for smooth look */
.service-cards::before,
.service-cards::after {
  content: "";
  position: absolute;
  top: 0;
  width: 100px;
  height: 100%;
  z-index: 5;
}

.service-cards::before {
  left: 0;
  background: linear-gradient(to right, #fff, transparent);
}

.service-cards::after {
  right: 0;
  background: linear-gradient(to left, #fff, transparent);
}

/* View More Button */ .view-more-link { display: inline-block; padding: 12px 30px; font-size: 1.2rem; font-family: 'Amaranth', sans-serif; font-weight: bold; color: #fff; background: linear-gradient(45deg, #7fbf4d, #2E5932); border-radius: 30px; text-decoration: none; transition: all 0.3s ease; box-shadow: 0 6px 15px rgba(0,0,0,0.25); position: relative; overflow: hidden; margin-top: 20px; /* space between grid and button */ } .view-more-link::after { content: ''; position: absolute; left: 50%; top: 50%; width: 0; height: 0; background: rgba(255,255,255,0.2); transform: translate(-50%, -50%); border-radius: 50%; transition: width 0.4s ease, height 0.4s ease; } .view-more-link:hover::after { width: 200%; height: 500%; } .view-more-link:hover { transform: scale(1.05); box-shadow: 0 8px 20px rgba(0,0,0,0.35); } /* Hide disease list initially */ .disease-list { display: none; opacity: 0; transition: opacity 0.5s ease; } /* Show disease list */ .disease-list.show { display: block; opacity: 1; } /* Center entire View More section */ .view-more-section { display: flex; flex-direction: column; align-items: center; /* centers children horizontally */ justify-content: center; width: 100%; /* ensure full width */ margin-top: 30px; } /* Disease Grid: 4 columns x 3 rows, centered */ .disease-grid { display: grid; grid-template-columns: repeat(6, 1fr); /* 4 columns */ gap: 15px; width: 100%; /* full width of parent */ max-width: 1200px; /* limit max width */ justify-content: center; /* center grid items */ } /* Disease Boxes */ .disease-box { background: #F0F9F1; color: #2E5932; padding: 12px; border-radius: 8px; font-family: 'Amaranth', sans-serif; font-weight: bold; text-align: center; box-shadow: 0 4px 12px rgba(0,0,0,0.1); transition: transform 0.3s ease, background 0.3s ease; } .disease-box:hover { transform: translateY(-3px); background: #D9F0D9; } /* Outer wrapper - keeps everything centered */ .view-more-wrapper { display: flex; justify-content: center; align-items: center; width: 100%; text-align: center; margin-top: 50px; } /* Inner section - column layout */ .view-more-section { display: flex; flex-direction: column; align-items: center; gap: 25px; width: 100%; } /* Disease grid - 6 columns, 2 rows */ .disease-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 45px; justify-items: center; align-items: center; width: 100%; max-width: 1100px; /* limits total width for neat centering */ } /* Each box */ .disease-box { background: #f8fff3; border: 2px solid #2E5932; color: #2E5932; padding: 10px 15px; border-radius: 10px; font-family: 'Amaranth', sans-serif; text-align: center; font-weight: bold; transition: all 0.3s ease; width: 100%; } .disease-box:hover { background: #2E5932; color: #fff; transform: scale(1.05); } /* View More Button */ .view-more-link { display: inline-block; padding: 12px 40px; font-size: 1.2rem; font-family: 'Amaranth', sans-serif; font-weight: bold; color: #fff; background: linear-gradient(45deg, #7fbf4d, #2E5932); border-radius: 30px; text-decoration: none; transition: all 0.3s ease; box-shadow: 0 6px 15px rgba(0,0,0,0.25); position: relative; overflow: hidden; cursor: pointer; margin-top: 20px; } .view-more-link::after { content: ''; position: absolute; left: 50%; top: 50%; width: 0; height: 0; background: rgba(255,255,255,0.2); transform: translate(-50%, -50%); border-radius: 50%; transition: width 0.4s ease, height 0.4s ease; } .view-more-link:hover::after { width: 250%; height: 600%; } .view-more-link:hover { transform: scale(1.05); box-shadow: 0 8px 20px rgba(0,0,0,0.35); } /* Hide disease list initially */ .disease-list { display: none; opacity: 0; transition: opacity 0.5s ease; } /* Show disease list */ .disease-list.show { display: block; opacity: 1; } /* Responsive */ @media (max-width: 992px) { .disease-grid { grid-template-columns: repeat(3, 1fr); } } @media (max-width: 576px) { .disease-grid { grid-template-columns: repeat(2, 1fr); } }

/* Remove default body spacing */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Make sure background fills the screen */
html, body {
  width: 100%;
  height: 100%;
  background: #fff; /* set clean white background or your choice */
  overflow-x: hidden; /* remove any horizontal scroll */
}
