/* Body setup */
body {
    background-color: rgba(40,3,57,140);;  Set the entire page background to yellow */
    background:
    margin: 0;
    font-family: Arial, sans-serif;
    background-image: url('image/Background.jpeg');  /* Replace 'your-image.jpg' with the path to your image */
    background-size: cover;                  /* Makes the image cover the entire area */
    background-position: center;             /* Centers the image */
    background-repeat: no-repeat;            /* Prevents the image from repeating */
}

.section-background {
    background-image: url('image/Background.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: repeat;
    width: 100%;
    height: 100%;   /* Set height as needed */
}

/* Hamburger menu (3 lines) */
.hamburger {
    font-size: 40px;
    cursor: pointer;
    position: absolute;
    top: 20px;
    right: 20px;
}

/* Sidebar styling */
.sidebar {
    height: 100vh; /* Full height */
    width: 250px; /* Sidebar width */
    position: fixed; /* Fix to the left side */
    top: 0;
    left: -250px; /* Initially hidden (to the left of the screen) */
    background-color: White; /* Dark background for sidebar */
    overflow-x: hidden; /* Prevent horizontal scroll */
    transition: 0.3s ease; /* Smooth sliding effect */
    padding-top: 20px;
}

.sidebar a {
    display: block; /* Stack the links */
    color: white; /* White text color */
    padding: 15px;
    text-decoration: none; /* Remove underlines */
    font-size: 1.2rem;
}

.sidebar a:hover {
    background-color: red; /* Darken the link on hover */
}

/* Main content area */
.container {
    margin-left: 0;
    padding: 20px;
}

/* Header text style */
.header-text {
    font-size: 3rem;
    color: #333;
}

/* Show the sidebar when it's active (when open) */
.sidebar.open {
    left: 0; /* Moves the sidebar to the left */
}



.header-image {
    width: 300px; /* Make sure image fits in container */
    height: 120px;    /* Maintain aspect ratio */
    display: block; /* Make image a block element */
    /*background: rgba(40,3,57,255);*/
    margin: 20px auto;  /* Center the image horizontally */
    padding: 5px;
    border: none;
    background: none;
    position: center;
}

/* Style for the divider line */
.divider, .custom-divider {
    width: 100%;       /* Adjust width as desired */
    margin: 10px auto; /* Center the line and add some spacing */
    border: none;
    border-top: 5px solid white; /* Adjust thickness and color */
}

body, html {
    margin: 0;
    padding: 0;
}

/* Center container */
.container {
    text-align: center;
    margin-left: 100px;
}

/* Header image styling */
.header-image {
    max-width: 300px;
    height: 120px;
    margin-left: 100px;
}

/* Divider line */
.custom-divider {
    width: 85%;
    margin: none;
    padding: none;
    border-top: 2px solid White;
}

/* Divider line */
.custom-divider2 {
    width: 100%;
    margin: none;
    padding: none;
    border-top: 2px solid White;
}

/* Main menu styling */
.main-menu ul {
    display: flex;
    justify-content: center;
    list-style-type: none;
    background-color: rgba(40,3,57,255);
    padding: none;
    margin: none;
    margin-top: 0;
    margin-bottom: 0;
}

.main-menu ul li {
    margin: 0 20px;
}

.main-menu ul li a {
    color: White;
    text-decoration: none;
    padding: 10px;
    display: block;
}

/* Hide content sections by default */
.content-section {
    display: none;
    margin: 20px;
    text-align: left;
}

/* Visible content section */
.content-section.active {
    display: block;
}

.product-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px;
}

.product-card {
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.product-image {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.text-container {
    width: 100%; /* Ensure the container spans the full width */
    height: 200px; /* Set the desired height */
    background-image: url('../AboutUs/img_1.png'); /* Replace with your image URL */
    background-size: cover; /* Ensure the image covers the entire container */
    background-position: center; /* Center the image */
    background-repeat: no-repeat; /* Prevent the image from repeating */
    margin: 0; /* Remove any default margins */
    margin-top: 0%;
    overflow: hidden; /* Prevent content overflow */
    text-align: center;
    color: white;

}

.product-container2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px;
}


/* Mobile-first CSS */

/* General body styling */
body {
    background-color: rgba(40, 3, 57, 140); /* Background color */
    background-image: url('image/Background.jpeg'); /* Background image */
    background-size: cover; /* Ensure the background covers the screen */
    background-position: center; /* Center the background */
    background-repeat: no-repeat; /* Prevent background repeat */
    margin: 0;
    font-family: Arial, sans-serif;
}

/* Ensure the background section takes full width and height */
.section-background {
    background-image: url('image/Background.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    height: 100%; /* Ensure full screen height */
}

/* Hamburger menu (for mobile) */
.hamburger {
    font-size: 30px; /* Smaller size for mobile */
    cursor: pointer;
    position: absolute;
    top: 15px; /* Adjusted for mobile view */
    right: 15px; /* Adjusted for mobile view */
    z-index: 10; /* Ensure it's on top of other content */
}

/* Sidebar styling for mobile */
.sidebar {
    height: 100vh; /* Full height for sidebar */
    width: 250px; /* Sidebar width */
    position: fixed; /* Fix the sidebar on the left side */
    top: 0;
    left: -250px; /* Sidebar is hidden initially */
    background-color: white; /* Sidebar background */
    overflow-x: hidden; /* Hide horizontal scroll */
    transition: 0.3s ease; /* Smooth transition for opening */
    padding-top: 20px;
}

/* Sidebar links */
.sidebar a {
    display: block;
    color: black; /* Change to black for better visibility */
    padding: 15px;
    text-decoration: none;
    font-size: 1.2rem; /* Adjusted font size for readability */
}

/* Sidebar link hover effect */
.sidebar a:hover {
    background-color: red;
}

/* Show the sidebar when it's open */
.sidebar.open {
    left: 0; /* Moves the sidebar to the left when active */
}

/* Main content area for mobile */
.container {
    margin-left: 0;
    padding: 15px; /* Adjusted padding for mobile */
    text-align: center; /* Center align content */
}

/* Header text size */
.header-text {
    font-size: 2rem; /* Smaller font for mobile */
    color: white;
}

/* Header image for mobile */
.header-image {
    width: 100%; /* Make the image responsive */
    height: auto;
    margin: 15px 0;
}

/* Divider line */
.divider, .custom-divider {
    width: 85%; /* Adjust width for mobile */
    margin: 10px auto; /* Center the divider */
    border-top: 2px solid white;
}

/* Main menu (ensure it's mobile-friendly) */
.main-menu ul {
    display: block; /* Stack menu items vertically */
    padding: 0;
    margin: 0;
    background-color: rgba(40, 3, 57, 255);
    text-align: center;
}

.main-menu ul li {
    margin: 10px 0; /* Add spacing between menu items */
}

.main-menu ul li a {
    color: white;
    text-decoration: none;
    padding: 10px;
    font-size: 1rem; /* Adjust font size for mobile */
}

/* Product container for mobile */
.product-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Responsive grid */
    gap: 15px;
    padding: 15px;
}

/* Product card styling */
.product-card {
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 15px;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.product-image {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

/* Text container with background image */
.text-container {
    width: 100%;
    height: 200px;
    background-image: url('../AboutUs/img_1.png'); /* Replace with actual path */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin: 10px 0;
    overflow: hidden;
    text-align: center;
    color: white;
}

/* Second product container */
.product-container2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Responsive grid */
    gap: 15px;
    padding: 15px;
}

/* Mobile-specific adjustments */
@media only screen and (max-width: 768px) {
    /* Main content adjustments for mobile */
    body {
        padding: 0; /* Reset any global padding */
        font-size: 14px; /* Adjust the default font size for readability */
    }

    .container {
        margin-left: 0;
        padding: 15px; /* Reduced padding for mobile */
    }

    /* Hamburger menu */
    .hamburger {
        font-size: 30px; /* Reduce size */
        position: absolute;
        top: 15px;
        right: 15px;
    }

    /* Sidebar styling */
    .sidebar {
        width: 100%; /* Sidebar should take full width */
        height: 100vh;
        position: fixed;
        top: 0;
        left: -100%; /* Initially hidden off-screen */
        background-color: White;
        transition: 0.3s ease;
        padding-top: 20px;
    }

    /* Adjust Sidebar links */
    .sidebar a {
        padding: 12px 20px;
        font-size: 1.1rem;
    }

    /* Open sidebar */
    .sidebar.open {
        left: 0; /* Show sidebar */
    }

    /* Header image for mobile */
    .header-image {
        width: 100%; /* Full width for header image */
        height: auto;
        margin: 20px 0;
    }

    /* Main menu stack items vertically */
    .main-menu ul {
        display: block;
        padding: 0;
        margin: 0;
    }

    .main-menu ul li {
        margin: 10px 0;
    }

    .main-menu ul li a {
        padding: 12px 20px; /* Adjust padding for better spacing */
        font-size: 1rem;
    }

    /* Product grid layout */
    .product-container, .product-container2 {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Flexible grid */
        gap: 15px;
        padding: 10px;
    }

    .product-card {
        padding: 10px;
        font-size: 14px; /* Adjust font size */
    }

    /* Text container styling */
    .text-container {
        width: 100%;
        height: 200px;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        margin: 10px 0;
    }
}
