.container {
    width: 85%; /* Adjust width as needed */
    max-width: 1200px; /* prevents it from being too wide on big screens */

    margin: 20px auto;
    background-color: #f8f8f8;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

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


@media (max-width: 768px) {
    .container {
        width: 95%;
    }

}

.tool-section {
  margin-bottom: 4rem;
}

.section-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: #1f3b4d;
  margin-bottom: 1rem;
}

.carousel-wrapper {
  position: relative;
  width: 96%;
  margin: 0 auto;
}


.card-carousel {
    display: flex;
    gap: 2rem;
    overflow-x: auto; /* allow scrolling inside wrapper */
    scroll-behavior: smooth;
    padding-bottom: 1rem;
    scroll-snap-type: x mandatory; /* optional */
}

.tool-card {
  flex: 0 0 320px;
  height: 320px;
  background: white;
  border-radius: 16px;
  padding: 2rem 1.5rem;
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  scroll-snap-align: start;
}

.tool-card:hover {
  transform: translateY(-10px) scale(1.04);
  box-shadow: 0 16px 24px rgba(0,0,0,0.18);
}

.card-icon {
  font-size: 3rem;
  margin-bottom: 0.7rem;
  text-align: center;
}

.card-title {
  font-size: 1.4rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 0.5rem;
}

.card-desc {
  font-size: 1rem;
  color: #4a4a4a;
  text-align: center;
  flex-grow: 1;
}

.card-btns {
    display: flex;
    gap: 10px; /* spacing between buttons */
}


.card-btn {
  text-align: center;

  display: block;
  width: 100%;
  padding: 0.6rem 0;
  background: #3da4ab;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card-btn:hover {
    background-color: #3da4ab;
    transform: scale(1.05);
}


.tool-card:hover .card-btn {
  opacity: 1;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #3da4ab;
  border: none;
  color: white;
  font-size: 2rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  z-index: 2;
}

.carousel-arrow.left {
  left: -1rem;
}

.carousel-arrow.right {
  right: -1rem;
}

@media (max-width: 1024px) {
  .tool-card {
    flex: 0 0 280px;
    height: 300px;
  }
}

@media (max-width: 768px) {
  .tool-card {
    flex: 0 0 240px;
    height: 280px;
  }
  .carousel-arrow {
    display: none; /* hide arrows on mobile, swipe works */
  }
}
