/* General Body Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4; /* Light grey background */
    color: #333;
    line-height: 1.6; /* Improved readability */
}

/* Header Styles */
header {
    background-color: #2e8b57; /* Dark Green - Similar to Dagar */
    color: white;
    padding: 15px 0;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}
.header-content {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.logo {
    max-width: 150px; /* Size of the logo */
    height: auto;
    margin-bottom: 10px;
}
header h1 {
    margin: 0;
    font-size: 2.5em;
}
header p {
    margin: 5px 0 0;
    font-size: 1.2em;
}

/* Top Navigation Styles */
.top-nav {
    background-color: #3cb371; /* Medium Green */
    color: white;
    padding: 0.5em 0;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.top-nav a {
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    display: inline-block;
    transition: background-color 0.3s ease;
}
.top-nav a:hover {
    background-color: #2e8b57; /* Darker green on hover */
}

/* Hero Section Styles (Homepage Only) */
.hero-section {
    background: url('https://via.placeholder.com/1500x500.png?text=Suvalal+and+Sons+HDPE+Pipes') no-repeat center center/cover; /* Replace with your actual image URL */
    color: white;
    text-align: center;
    padding: 100px 20px;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.hero-section::before { /* Overlay for better text readability */
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* Semi-transparent black overlay */
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2; /* Text and button above overlay */
}
.hero-content h2 {
    font-size: 3.5em;
    margin-bottom: 10px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}
.hero-content p {
    font-size: 1.5em;
    margin-bottom: 30px;
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}
.hero-button {
    background-color: #0056b3; /* Your preferred Blue button */
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.2em;
    transition: background-color 0.3s ease;
}
.hero-button:hover {
    background-color: #004085;
}

/* Main Content Wrapper - Flexbox for Sidebar Layout */
.main-wrapper {
    display: flex;
    flex-wrap: wrap; /* Allows stacking on smaller screens */
    max-width: 1000px; /* Max width for the entire website content */
    margin: 20px auto;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    background-color: white;
    border-radius: 8px;
    overflow: hidden; /* Ensures content stays within bounds */
}

/* Sidebar Styles */
.sidebar {
    flex: 0 0 250px; /* Fixed width for the sidebar */
    background-color: #e0ffe0; /* Light Green background for sidebar */
    padding: 20px;
    border-right: 1px solid #ddd;
    box-sizing: border-box; /* Include padding in width calculation */
}
.sidebar h3 {
    color: #2e8b57; /* Dark green sidebar heading */
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #ccc;
    font-size: 1.3em;
}
.sidebar ul {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}
.sidebar ul li {
    margin-bottom: 8px;
}
.sidebar ul li a {
    text-decoration: none;
    color: #0056b3; /* Blue for sidebar links */
    display: block;
    padding: 5px 0;
    transition: color 0.3s ease, background-color 0.3s ease;
}
.sidebar ul li a:hover {
    color: #004085;
    background-color: #f0f0f0;
    padding-left: 5px;
}

/* Main Content Area Styles */
.content-area {
    flex-grow: 1; /* Takes up remaining space */
    padding: 20px;
    box-sizing: border-box;
}

/* Container Styles (for individual sections within content-area) */
.container {
    background-color: white;
    padding: 0; /* Padding is handled by content-area now */
    margin-bottom: 30px; /* Margin between containers */
}
.container h2 {
    color: #2e8b57; /* Green heading for main sections */
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-size: 2em;
}
.container h3 { /* Blue sub-headings for product details */
    color: #0056b3;
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: 1.5em;
}
.container ul {
    list-style: disc; /* Bullet points for lists */
    padding-left: 20px;
    margin-bottom: 15px;
}
.container ul li {
    padding: 5px 0;
    border-bottom: none;
}
.container p {
    margin-bottom: 15px;
}

/* Product Detail Section Specific Styles */
.product-detail-section {
    margin-bottom: 40px; /* More space between product sections */
    padding-bottom: 20px;
    border-bottom: 1px dashed #ccc; /* Separator for product details */
}
.product-detail-section:last-of-type {
    border-bottom: none; /* No border for the last product section */
}
.product-image-container {
    text-align: center;
    margin: 20px 0;
}
.product-image-container img {
    max-width: 100%;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Gallery Styles */
.gallery-images {
    display: flex;
    flex-wrap: wrap;
    gap: 15px; /* Gap between images */
    justify-content: center;
}
.gallery-images img {
    width: 100%; /* Full width on small screens */
    max-width: 220px; /* Max width on desktops */
    height: 150px;
    object-fit: cover; /* Ensures images cover the area without distortion */
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}
.gallery-images img:hover {
    transform: scale(1.05); /* Slight zoom on hover */
}

/* Footer Styles */
footer {
    background-color: #2e8b57; /* Dark Green */
    color: white;
    text-align: center;
    padding: 1.5em 0;
    width: 100%;
    margin-top: 30px;
}
footer p {
    margin: 5px 0;
}

/* Responsive Design (Media Queries) */
@media (max-width: 768px) {
    .main-wrapper {
        flex-direction: column; /* Stack sidebar and content in column */
        margin: 10px auto;
        border-radius: 0;
        box-shadow: none;
    }
    .sidebar {
        flex: 1 1 auto; /* Take full width */
        border-right: none;
        border-bottom: 1px solid #ddd; /* Bottom border for sidebar */
    }
    .sidebar h3 {
        text-align: center;
    }
    .sidebar ul {
        display: flex; /* Make sidebar links inline/flex on mobile */
        flex-wrap: wrap;
        justify-content: center;
        margin-bottom: 10px;
    }
    .sidebar ul li {
        margin: 0 10px 10px 10px; /* Spacing between mobile sidebar links */
    }
    .sidebar ul li a {
        padding: 5px 10px;
        background-color: #f0f0f0;
        border-radius: 3px;
        color: #0056b3;
    }
    .sidebar ul li a:hover {
        background-color: #e0ffe0;
    }
    .content-area {
        padding: 15px;
    }
    .hero-content h2 {
        font-size: 2em;
    }
    .hero-content p {
        font-size: 1em;
    }
    .top-nav a {
        padding: 8px 10px;
        font-size: 0.9em;
    }
    .gallery-images img {
        max-width: 48%; /* Two columns for images on tablets */
        height: auto;
    }
}

@media (max-width: 480px) {
    .header-content h1 {
        font-size: 2em;
    }
    .header-content p {
        font-size: 1em;
    }
    .hero-section {
        padding: 50px 10px;
        min-height: 250px;
    }
    .hero-content h2 {
        font-size: 1.8em;
    }
    .hero-content p {
        font-size: 0.9em;
    }
    .hero-button {
        padding: 10px 20px;
        font-size: 1em;
    }
    .gallery-images img {
        max-width: 95%; /* Single column for images on small phones */
    }
}
