/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    line-height: 1.4;
    color: #000;
    background-color: #fff;
    margin: 0;
    padding: 0;
}

.container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: stretch; /* Ensure columns and divider stretch to match the tallest content */
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 0; /* Add padding for spacing */
}

/* Top Bar Section */
.top-bar {
    background-color: #fff; /* White background */
    padding: 0px 60px;
    border-bottom: 1px solid #ddd; /* Optional border for separation */
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Ensure responsiveness */
    width: 90%;
    margin: 0;
    padding: 0;
    max-width: none;
}

.top-bar .logo {
    margin: 0; /* Remove any default margin */
    padding: 0; /* Remove any default padding */
}

.top-bar .logo img {
    height: 100px; /* Increase logo height */
    max-width: 100%;
}

.top-bar .contact-info {
    font-size: 1rem;
    color: #000;
    text-align: right;
}

.top-bar .contact-info a {
    color: #000;
    text-decoration: none;
}

.top-bar .contact-info a:hover {
    text-decoration: underline;
}

/* Banner Section */
.banner {
    position: relative;
    background: url('https://kspaceinteriordesign.studio/images/TV%20Unit%20Design%20-%20Home%20Interior.jpg') no-repeat center center/cover;
    height: auto; /* Allow height to adjust dynamically */
    min-height: 60vh; /* Ensure a minimum height for the banner */
    display: flex;
    align-items: center; /* Vertically center the content */
    justify-content: center; /* Center-align content horizontally */
    text-align: left; /* Left-align text for desktop */
    color: white;
    padding: 20px; /* Add padding for spacing */
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7)); /* Gradient from left to right */
    z-index: 1;
}

.banner-content {
    position: relative;
    z-index: 2;
    max-width: 900px; /* Limit the width of the text for better readability */
    text-align: left; /* Left-align text for desktop */
    padding: 100px; /* Add padding inside the content box */
    box-sizing: border-box; /* Ensure padding is included in the width */
}

.banner-content h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    line-height: 1.2;
}

.banner-content h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    line-height: 1.2;
}

.banner-content h3 {
    font-size: 1rem;
    line-height: 1.5;
}

/* Contact Bar Section */
.contact-bar {
    background-color:lightslategray;
    color: white;
    padding: 20px 0;
    text-align: left;
}

.contact-bar .container {
    display: flex;
    flex-wrap:wrap;
    justify-content:left;
    align-items: left;
    max-width:none;
}

.contact-bar .contact-list {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: left;
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-bar .contact-list li {
    margin: 10px 20px;
    font-size: 1rem;
}

.contact-bar .contact-list a {
    color: white;
    text-decoration: none;
}

.contact-bar .contact-list a:hover {
    text-decoration: underline;
}

/* Carousel Heading */
.carousel-heading {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #000;
}

/* Footer Section */
.footer {
    background-color: #000;
    color: #fff;
    text-align: center;
    padding: 10px;
    font-size: 0.9rem;
    height: auto;
}

.footer .container {
    display: flex;
    flex-wrap:wrap;
    justify-content:left;
    align-items: left;
    max-width:none;
}

/* Image Carousel Section */
.image-carousel {
    width: 100%;
    overflow: hidden;
    background-color: #f9f9f9;
    padding: 20px 0;
}

.carousel-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.carousel-slide {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

.carousel-slide img {
    width: 100%; /* Ensure images take up the full width of the carousel */
    max-width: 100%;
    height: 250px; /* Reduce height for better responsiveness */
    object-fit: cover; /* Maintain aspect ratio and crop excess */
    border-radius: 10px;
    margin: 0 10px;
}

/* Overlay Styles */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.overlay img {
    max-width: 90%;
    max-height: 80%;
    border-radius: 10px;
}

.overlay .close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2rem;
    color: white;
    cursor: pointer;
}

.overlay .prev-btn,
.overlay .next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.7);
    border: none;
    padding: 10px 20px;
    font-size: 1.5rem;
    cursor: pointer;
    border-radius: 5px;
}

.overlay .prev-btn {
    left: 20px;
}

.overlay .next-btn {
    right: 20px;
}

.overlay.visible {
    visibility: visible;
    opacity: 1;
}

.overlay.hidden {
    visibility: hidden;
    opacity: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .banner {
        justify-content: center; /* Center-align content for mobile */
        text-align: center; /* Center-align text for mobile */
        height: auto; /* Allow height to adjust dynamically */
        min-height: 60vh; /* Ensure a minimum height for the banner */
    }

    .banner-content {
        text-align: center; /* Center-align text for mobile */
        padding: 60px; /* Reduce padding for smaller screens */
    }

    .banner-content h1 {
        font-size: 2rem;
    }

    .banner-content h2 {
        font-size: 1.5rem;
    }

    .banner-content h3 {
        font-size: 0.9rem;
    }

    .carousel-heading {
        font-size: 1.5rem;
    }

    .contact-bar {
        text-align: center; /* Center-align text for mobile */
    }

    .contact-bar .container {
        justify-content:center;
        align-items: center;
    }

    .contact-bar .contact-list {
        flex-direction: column; /* Ensure items stack vertically */
        justify-content: center;
    }

    .contact-bar .contact-list li {
        margin: 10px 0; /* Maintain spacing between items */
    }

    .footer .container {
        justify-content:center;
        align-items: center;
    }

    .carousel-slide img {
        height: 200px; /* Further reduce image height for smaller screens */
    }

    .top-bar {
        text-align: center; /* Center-align text for mobile */
        justify-content:center;
        display: flex;
        padding: 20px 0;
    }
    
    .top-bar .container {
        flex-direction: column; /* Stack logo and contact info vertically */
        text-align: center;
        justify-content:center;
    }

}