body {
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    background-color: #f5e6cc; /* Soft beige for an eye-pleasing look */
    text-align: center;
    margin: 0;
    padding: 20px;
}

h1 {
    color: #333;
    font-size: 36px;
}

.container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1800px;
    margin: 0 auto;
}

.tool {
    background: #ffffff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
    position: relative; /* Needed for positioning buttons */
}

/* Image Slider Styles */
.image-slider {
    position: relative;
    width: 100%;
    height: 320px;
    overflow: hidden;
}

.image-slider img {
    width: 100%;
    height: 320px;
    object-fit: contain; /* Ensures full image is visible */
    display: none; /* Hide all images by default */
    transition: opacity 0.5s ease-in-out;
}

.image-slider img.active {
    display: block; /* Show only the active image */
}

/* Navigation Buttons */
.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 18px;
}

.prev {
    left: 5px;
}

.next {
    right: 5px;
}

.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Tool Info */
.tool h2 {
    font-size: 20px;
    margin: 10px 0 5px;
}

.tool p {
    font-size: 18px;
    font-weight: bold;
    color: #d35400;
}

/* Back Button */
.back-button {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
}

.back-button:hover {
    background: #0056b3;
}
