html, body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}

body {
    font-family: Arial, sans-serif;
    background: #fefefe;
    color: #333;
}

header {
    background: #ffdddd;
    padding: 20px;
    text-align: center;
}

nav {
    background: #f4a4a4;
    text-align: center;
    padding: 10px 0;
    display: flex; /* Use flexbox for layout */
    justify-content: space-around; /* Space out the tabs equally */
    align-items: center; /* Center the items vertically */
}

nav a {
    margin: 0; /* Remove default margin */
    text-decoration: none;
    color: white;
    font-weight: bold;
    font-size: 1rem; /* Adjust font size for better visibility */
    padding: 5px 10px; /* Add padding for clickable area */
    transition: color 0.3s, background 0.3s; /* Add hover effect */
}

nav a:hover {
    background: #e74c3c; /* Highlight background on hover */
    color: #fff; /* Ensure text remains visible */
    border-radius: 5px; /* Add rounded corners */
}

main {
    flex: 1; /* Push the footer to the bottom */
    padding: 20px;
    max-width: 800px;
    margin: auto;
}

footer {
    background: #ffdddd;
    text-align: center;
    padding: 10px;
    font-size: 0.9rem;
    color: #333;
}

.logo {
    max-width: 200px;
}

.call-button {
    display: inline-block;
    margin-top: 20px;
    background: #e74c3c;
    color: white;
    padding: 12px 20px;
    text-decoration: none;
    border-radius: 5px;
}

.carousel {
    width: 100%;
    max-width: 800px; /* Increased max-width for better visibility */
    margin: 20px auto;
    overflow: hidden;
    position: relative;
    border: 2px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Add a subtle shadow */
}

.carousel-images {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-images img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 10px; /* Rounded corners for images */
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    margin-top: 15px;
    gap: 10px; /* Add spacing between thumbnails */
}

.carousel-indicators img {
    width: 60px; /* Slightly larger thumbnails */
    height: 60px;
    border: 2px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    object-fit: cover;
    transition: transform 0.3s, border 0.3s;
}

.carousel-indicators img:hover {
    transform: scale(1.1); /* Slight zoom effect on hover */
    border-color: #e74c3c; /* Highlight border on hover */
}

.carousel-indicators img.active {
    border: 3px solid #e74c3c; /* Thicker border for active thumbnail */
    transform: scale(1.2); /* Slightly larger active thumbnail */
}

/* Media query for smaller screens (max-width: 768px) */
@media (max-width: 768px) {
    nav {
        flex-direction: column; /* Stack navigation links vertically */
        padding: 15px 0;
    }

    nav a {
        font-size: 0.9rem; /* Reduce font size for smaller screens */
        padding: 8px 15px; /* Adjust padding for better spacing */
    }

    .carousel {
        max-width: 100%; /* Allow carousel to take full width on smaller screens */
        margin: 10px auto;
    }

    .carousel-images img {
        border-radius: 5px; /* Reduce border radius for smaller screens */
    }

    .carousel-indicators {
        gap: 5px; /* Reduce spacing between thumbnails */
    }

    .carousel-indicators img {
        width: 40px; /* Smaller thumbnails */
        height: 40px;
    }

    .call-button {
        font-size: 0.9rem; /* Adjust button font size */
        padding: 10px 15px; /* Adjust padding for smaller screens */
    }

    footer {
        font-size: 0.8rem; /* Reduce footer font size */
        padding: 8px;
    }
}

/* Media query for very small screens (max-width: 480px) */
@media (max-width: 480px) {
    header {
        padding: 10px;
    }

    .logo {
        max-width: 150px; /* Smaller logo */
    }

    nav a {
        font-size: 0.8rem; /* Further reduce font size */
        padding: 5px 10px;
    }

    .carousel-indicators img {
        width: 30px; /* Even smaller thumbnails */
        height: 30px;
    }

    .carousel-images img {
        border-radius: 3px; /* Minimal border radius */
    }

    .call-button {
        font-size: 0.8rem;
        padding: 8px 12px;
    }
}
