html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}
header {
    background: linear-gradient(90deg, #007bff, #0056b3);
    padding: 10px 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
}
nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}
nav ul li {
    margin: 0 10px;
}
nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}
nav ul li a:hover {
    color: #ffcc00;
}
.navbar-toggler-icon {
    filter: invert(1);
}

/* Align Employee Login Button to the Right */
.navbar-nav {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.navbar-nav .nav-item:last-child {
    margin-left: auto; /* Pushes the login button to the right */
}

/* Ensure the logo is always aligned to the left without extra margin */
.navbar-brand {
    display: flex;
    align-items: center;
    margin-left: 0; /* Ensure no left margin */
    padding-left: 0; /* Ensure no left padding */
    margin-right: 40px;
}

/* Remove any extra space around logo on smaller screens */
.navbar .container-fluid {
    padding-left: 0; /* Remove padding */
    padding-right: 0; /* Remove padding */
}

/* Transparent Button with Golden Border */
.btn-flat {
    font-family: 'Open Sans', sans-serif; /* Apply Open Sans font */
    color: #ffc107 !important; /* Golden text color */
    border: 1px solid #ffc107; /* Golden border */
    background: transparent; /* Transparent background */
    box-shadow: none;
    transition: color 0.3s, background-color 0.3s, text-decoration 0.3s; /* Smooth transition */


}

.btn-flat:hover,
.btn-flat:focus { 
    text-decoration: underline; /* Subtle underline effect */
    background-color: transparent; /* Keep background transparent on hover */
    color: #fff; /* White text on hover */
    border-color: #e0a800; /* Slightly darker golden border on hover */
}


.login a {
    color: #fff;
    background: linear-gradient(90deg, #ff7e5f, #feb47b);
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s, transform 0.2s;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
}
.login a:hover {
    background: linear-gradient(90deg, #ff6a4d, #fe9e67);
    transform: scale(1.05);
    box-shadow: 3px 3px 12px rgba(0, 0, 0, 0.3);
}

.container-fluid {
    max-width: 100%; /* Adjust this value for equal margins */
    margin: auto; /* Centers the content */
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    padding-left: 10px; /* Adjust left padding to get closer to the edge */
    padding-right: 10px; /* Adjust right padding */
    /* Center content by adjusting margins */
    margin-left: 3%;
    margin-right: auto;
}

.row {
    display: flex;
    width: 100%;
    gap: 20px;
    margin-bottom: 20px;
    margin-left: 0; /* Remove extra margin from left */
    margin-right: 0; /* Remove extra margin from right */
}
.row.gx-1 {
    gap: 10px; /* Adjusting gap between grid columns to be closer */
}

.sliding-info {
   
    width: 100%;
    height: 400px; /* Set a fixed height for the container */
    min-height: 200px; /* Ensure a minimum height if content is smaller */
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    margin-bottom: 20px;
    overflow: hidden; /* Ensure that content outside the container is hidden */

}

.sliding-info img {
    width: 100%;
    height: 100%; /* Ensure the image takes the full height of the container */
    max-width: 100%; /* Prevent the image from exceeding the container's width */
    max-height: 400px; /* Limit the maximum height to avoid images getting too large */
    object-fit: fill; /* Stretch the image to cover both width and height, may distort the image, choose: cover,fill */
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    border-radius: 10px;
}

.sliding-info img.active {
    opacity: 1;
}

.static-info {
    background: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    height: 100%; /* Ensures equal height */
    padding: 1rem; /* Adjust padding inside the grid items */
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    width: 25%;
}

.static-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}


footer {
    background: #0078d4;
    color: white;
    text-align: center;
    padding: 10px 0;
    position: relative;
}

.dots {
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    padding: 10px 0; /* Adds padding to the top and bottom */
    border-radius: 20px; /* Rounded corners for a smooth look */

    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
}
.dot {
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: #fff;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.3s;
}
.dot.active {
    background-color:  #007bff;
}
.dot:hover {
    background-color: #0056b3; /* Change dot color on hover */
}

/* The overlay that will sit on top of the images */
.content-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    text-align: center;
    padding: 0px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    max-width: 80%;
    width: 80%;
    z-index: 10;
}

/* Ensures only one content (title or summary) is shown at a time */
.overlay-text {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.overlay-text.active {
    display: block;
    opacity: 1;
}
/* Title of the content */
.overlay-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 10px;
}

/* Summary text */
.overlay-summary {
    font-size: 1rem;
    margin-bottom: 15px;
}

/* Make sure the image doesn't get distorted */
img.img-fluid {
    width: 100%;
    height: auto;
}
/* The "Read more..." link */
.read-more {
    color: #ffc107; /* Use a contrasting color for the link */
    font-weight: bold;
    text-decoration: underline;
    transition: color 0.3s, text-decoration 0.3s;
}

.read-more:hover {
    color: #ff8000;
    text-decoration: none;
}


/* Media query for mobile devices (max-width: 768px) */
@media only screen and (max-width: 768px) {
    .container-fluid .row {
        display: block; /* Stacks the elements vertically on mobile */
    }

    /* Adjust margin-top for "Why Invest" and "Key Industries" sections on mobile */
    .container-fluid .col-12.d-flex.align-items-stretch {
        margin-top: 10px; /* Adds space above these sections */
    }

    
    .static-info {
        margin-top: 10px; /* Adjust top margin for small screens */
        
    }


    /* Adjust font size and padding for smaller screens */
    .static-info h4 {
        font-size: 1.2rem; /* Reduce font size */
    }

    .static-info p {
        font-size: 0.9rem; /* Smaller text for mobile */
    }

    .sliding-info {
        height: 300px; /* Adjust height automatically */
        margin-bottom: 0px; /* Increase the bottom margin on small screens */
        padding: 0px; /* Less padding on mobile */
    }

    .sliding-info img {
        width: 100%; /* Ensure images fill the width of the container */
        object-fit: fill; /* Cover the container while preserving aspect ratio */
    }

    /* Adjust grid layout for smaller screens */
    .row {
        margin-right: 0;
        margin-left: 0;
    }

   /* Remove padding in columns for mobile */
   .col-lg-3, .col-md-6, .col-12 {
    padding-left: 0;
    padding-right: 0;
    }
}

