/* General Reset */
body, ul, li, h1, h2, p {
    margin: 0;
    padding: 0;
    list-style: none;
    font-family: 'Arial', sans-serif;
}
/* Top Bar */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #006400;
    color: white;
    padding: 5px 20px;
    font-size: 0.9rem;
}

.top-bar .container {
    width: 100%;
    max-width: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}


.top-bar .social-icons {
    display: flex;
    gap: 10px;
}

.top-bar .social-icons img {
    width: 20px;
    height: 20px;
}



/* Header Bar */
header {
    background-color: white;
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
}


header .header-container {
    display: flex;
    justify-content: center;
    align-items: center;
}
.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    margin-right: 10px;
}

.logo span {
    font-size: 1.5rem;
    font-weight: bold;
}


header .contact-info {
    text-align: right;
}

header .social-icons img {
    width: 20px;
    margin-left: 10px;
}

/* Navigation Bar */
nav {
    background-color: #f9f9f9;
    border-bottom: 1px solid #ddd;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
}


/* Navigation Styles */
nav ul {
    display: flex;
    justify-content: center;
    background-color: #f9f9f9;
    padding: 10px 0;
    gap: 20px;
    border-bottom: 1px solid #ddd;
}

nav ul li {
    position: relative;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    padding: 10px 20px;
    font-weight: bold;
    display: block;
}

nav ul li:hover > a {
    color: #006400; /* Green hover effect */
}

nav ul .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    border: 1px solid #ddd;
    display: none;
    padding: 10px 0;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    min-width: 200px;
}

nav ul .dropdown:hover > .dropdown-menu {
    display: block;
}

nav ul .dropdown-menu li {
    position: relative;
}

nav ul .dropdown-menu li a {
    padding: 10px 20px;
    white-space: nowrap;
    color: #333;
}

nav ul .dropdown-menu li:hover > a {
    background-color: #f2f2f2; /* Highlight effect */
}

nav ul .dropdown-menu .dropdown-menu {
    top: 0;
    left: 100%; /* Position sub-menu to the right */
    border: 1px solid #ddd;
    display: none;
    z-index: 1100;
}

nav ul .dropdown-menu li:hover > .dropdown-menu {
    display: block;
}


/* Animation for Sliding Images */
@keyframes slide {
    0% { transform: translateX(0%); }
    33% { transform: translateX(-100%); }
    66% { transform: translateX(-200%); }
    100% { transform: translateX(0%); }
}


/* Enquire Now Section */
.enquire-now {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: white;
    border: 2px solid #006400;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: 300px;
    display: none; /* Initially hidden */
}

.enquire-now.active {
    display: block; /* Display when active */
}

.enquire-now .close-btn {
    font-size: 20px;
    color: #006400;
    float: right;
    cursor: pointer;
}

.enquire-now h2 {
    margin-bottom: 20px;
    color: #333;
}

.enquire-now form input,
.enquire-now form button {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    box-sizing: border-box; /* This ensures width includes padding and border */
    display: block;
}


.enquire-now form button {
    background: #006400;
    color: white;
    font-weight: bold;
    cursor: pointer;
}

.enquire-now form button:hover {
    background: #004d00; /* Darker green */
}

/* Footer */
footer {
    background-color: #f1f1f1;
    text-align: center;
    padding: 10px 0;
    margin-top: 20px;
    font-size: 0.9rem;
}

/* SHOP NOW Button */
.shop-now-btn {
    background: #006400;
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
}

.shop-now-btn:hover {
    background: #004d00;
}

/* Navigation Buttons */
.prev-btn, .next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 10px 15px;
    cursor: pointer;
    z-index: 2;
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

.prev-btn:hover, .next-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

@media (max-width: 768px) {

    .top-bar, 
    .top-bar .container, 
    .nav-container, 
    header .header-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 10px;
    }

    .top-bar .social-icons {
        justify-content: flex-start;
    }

    nav ul {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px;
        gap: 5px;
    }

    nav ul li a {
        padding: 10px;
    }

    .banner {
        height: 250px;
    }

    .carousel {
        height: 100%;
    }

    .product-banner h1 {
        font-size: 1.8rem;
        padding: 0 10px;
    }

    .product-intro h2 {
        font-size: 1.5rem;
    }

    #about-us h2 {
        font-size: 2rem;
    }

    #about-us p {
        font-size: 1rem;
        padding: 0 10px;
    }

    .dashboard-cards {
        flex-direction: column;
    }

    .form-section,
    .worker-form-section {
        padding: 1rem;
    }

    .product-details table {
        font-size: 0.9rem;
    }

    .pagination a {
        padding: 0.5rem 0.8rem;
        font-size: 0.9rem;
    }

    .enquire-now {
        width: 90%;
        bottom: 10px;
        right: 5%;
        padding: 15px;
    }

    .carousel-slide img {
        object-position: center center;
    }
}
