/* Body Styling */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background: url('images/background.jpg') no-repeat center center fixed;
    background-size: cover;
}

/* Container */
.container {
    width: 80%;  /* Set the width of the container to 80% of the viewport */
    margin: 0 auto; /* Center the content on the page */
    background-color: rgba(255, 255, 255, 0.9);
    padding: 20px;
    max-width: 1000px;
}

/* Header */
header {
    /*position: relative; /* Ensure the header is positioned for child positioning */
    /*height: 100px; /* Set the height of the header to 100px */
    padding: 10px 0;
}

header .logo img {
   max-width: 100%;
   height: auto;
}

/* Header Container */
header .container {
    background: url('images/banner.jpg') no-repeat center center/cover; /* Background image */
    height: 100%; /* Fill the height of the header */
    position: relative; /* Ensure the container is positioned relative for child positioning */
    display: flex; /* Use flexbox to align items */
    align-items: flex-end; /* Align items to the bottom */
    padding: 0 1rem; /* Optional: Add padding for better spacing */
}

/* Logo */
header .logo {
    float: left; /* Align the logo to the left of the header */
    max-height: 100%; /* Ensure the logo fits within the header height */
    width: auto; /* Maintain aspect ratio */
    border: none; /* Remove the border */
}

/* Navigation */
header nav {
    margin-left: auto; /* Push the navigation to the right */
    margin-bottom: 0; /* Remove bottom margin */
}

header .nav-links {
    list-style: none;
    margin: 0; /* Remove default margin */
    padding: 0; /* Remove default padding */
    justify-content: flex-flex-end;
    display: flex;
}

header .nav-links li {
    display: inline;
    margin-left: 1rem;
    text-decoration: none;
}

header .nav-links a {
    color: #fff;
    text-decoration: none;
}

/* Dropdown container */
.dropdown {
    position: relative;
    display: inline-block;
}

/* Dropdown button */
.dropbtn {
    font-size: 16px;
    border: none;
    outline: none;
    color: #fff;
    padding: 14px 16px;
    cursor: pointer;
    background: none; /* Remove background color */
}

/* Dropdown content (hidden by default) */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #444;
    min-width: 200px;
    min-height: 100px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    margin-left: 0.5rem;
}

/* Links inside the dropdown */
.dropdown-content a {
    color: #333;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

/* Change color of dropdown links on hover */
.dropdown-content a:hover {
    background-color: #ddd;
}

/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {
    display: block;
}

/* Change the background color of the dropdown button when hovered */
.dropdown:hover .dropbtn {
    background-color: #444; /* Optional: add a hover effect for better visibility */
}

/* Hero Section */
.hero {
    background: url('images/hero.jpg') no-repeat center center/cover;
    color: #fff;
    text-align: center;
    padding: 2rem 0;
}

.hero .container { /* Ensure the hero section content fits inside the container */
    background: rgba(0, 0, 0, 0.6); /* Optional: Add a semi-transparent background */
    padding: 2rem;
    border-radius: 10px;
    max-width: 1000px;
}

.hero h2 {
    font-size: 2.5rem;
}

.hero .btn {
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background-color: #007BFF;
    color: #fff;
    text-decoration: none;
}

/* Featured Blog Posts */
.featured-posts {
    padding: 2rem 0;
}

.featured-posts h2 {
    text-align: center;
    margin-bottom: 1rem;
}

.post-grid {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.post img {
    width: 100%;
}

.post h3 {
    margin: 0.5rem 0;
}

.post .btn {
    margin-top: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: #007BFF;
    color: #fff;
    text-decoration: none;
}

/* General Styling for Sections */
section {
    padding: 2rem 0; /* Add padding to top and bottom */
}

section .container {
    max-width: 80%;
    margin: 0 auto; /* Center align the content */
    padding: .1rem 1rem; /* Add padding for better spacing */
}

/* Featured Products */
.featured-products {
    background-color: #f9f9f9; /* Light background color */
    border: 1px solid #ddd; /* Light border around the section */
    border-radius: 8px; /* Rounded corners */
    padding: 0.75rem; /* Add padding inside the section */
    text-align: center; /* Center align text inside the section */
}

.featured-products h2 {
    margin-bottom: 1rem; /* Space below the heading */
}

.product-grid {
    display: flex;
    flex-wrap: wrap; /* Wrap products to next line if necessary */
    gap: 0.5rem; /* Space between products */
    justify-content: center;
}

.product {
    background-color: #fff; /* White background for individual products */
    border: 1px solid #ddd; /* Border around each product */
    border-radius: 8px; /* Rounded corners for products */
    padding: .5rem; /* Padding inside each product */
    text-align: center; /* Center align text inside the product */
    /*width: calc(33.333% - 1rem); /* Responsive width for three products per row */
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    justify-content: center;
    max-width: 350px;
    min-width: 225px;
    flex: 1 1 200px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);

}

.product img {
    max-width: 100%; /* Ensure image fits within product */
    border-bottom: 1px solid #ddd; /* Border below image */
    margin-bottom: 0.5rem; /* Space between image and text */
}

.product h3 {
    margin: 0.5rem 0; /* Space above and below the product name */
}

/* Where To Buy */
.where-to-buy {
    background-color: #f9f9f9; /* Same light background color as Featured Products */
    border: 1px solid #ddd; /* Same light border as Featured Products */
    border-radius: 8px; /* Same rounded corners as Featured Products */
    padding: 0.75rem; /* Same padding as Featured Products */
    text-align: center; /* Center align text inside the section */
    overflow: visible; /* Ensure content doesn't get cut off */
}

.where-to-buy h2 {
    margin-bottom: 1rem; /* Space below the heading */
}

.where-to-buy .location-grid {
    display: flex;
    flex-wrap: wrap; /* Wrap locations to next line if necessary */
    gap: 0.5rem; /* Space between locations */
    justify-content: center; /* Center align locations within the grid */
}

.where-to-buy .location {
    background-color: #fff; /* White background for individual locations */
    border: 1px solid #ddd; /* Border around each location */
    border-radius: 8px; /* Rounded corners for locations */
    padding: .5rem; /* Padding inside each location */
    text-align: center; /* Center align text inside the location */
    /*width: calc(33.333% - 1rem); /* Responsive width for three locations per row */
    /*box-sizing: border-box; /* Include border and padding in the element's total width and height */
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    justify-content: center;
    max-width: 350px;
    min-width: 225px;
    flex: 1 1 200px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.where-to-buy .location:last-child {
    /*border-bottom: none; /* Optional: Remove border from the last item */
}

/* Modal styling */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.5); /* Black with opacity */
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px; /* Limit the overall size of the modal */
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Quick Info and View Product buttons */
.quick-info, .view-product {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.quick-info {
    background-color: #007BFF;
    color: white;
}

.view-product {
    background-color: #28a745;
    color: white;
    text-decoration: none;
}

.view-product:hover, .quick-info:hover {
    opacity: 0.8;
}

/* Slideshow container */
.slideshow-container {
    position: relative;
    max-width: 100%;
    margin: auto;
}

/* Hide the images by default */
.mySlides {
    display: none;
}

/* Next & previous buttons */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev {
    left: 0;
    border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover, .next:hover {
    background-color: rgba(0,0,0,0.8);
}


.sectioncontent {
    max-width: 800px;
    margin: 0 auto;
}

.sectioncontent h1 {
    font-size: 2em;
    margin-bottom: 20px;
    color: #333;
}

.sectioncontent h2 {
    font-size: 1.5em;
    margin-top: 20px;
    color: #333;
}

.sectioncontent p {
    line-height: 1.6;
    color: #666;
    line-height: 1.6;
}

/* Contact Form Styles */
form {
    margin-top: 20px;
    width:70%;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}

.form-group textarea {
    resize: vertical;
}

.btn {
    background-color: #333;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.btn:hover {
    background-color: #555;
}

/* Styling for additional contact information */
h2 {
    margin-top: 30px;
}

p {
    margin-bottom: 10px;
}

/* Blog List Styles */

.blog-post {
    max-width: 800px;
    margin-bottom: 40px;
    border-bottom: 1px solid #ccc;
    padding-bottom: 20px;
}

.blog-post h2 {
    font-size: 28px;
    color: #333;
}

.blog-post h2 a {
    color: #007BFF;
    text-decoration: none;
}

.blog-post .post-date {
    font-size: 14px;
    color: #999;
    margin-bottom: 10px;
}

.blog-post p {
    font-size: 18px;
    color: #666;
}

.blog-post .read-more {
    color: #007BFF;
    text-decoration: none;
    font-weight: bold;
}

.blog-post .read-more:hover {
    text-decoration: underline;
}



/* Footer */
footer {
    background-color: #333; /* Dark background color for the footer */
    color: #fff; /* White text color */
    padding: 1rem 0; /* Padding for top and bottom */
    background-color: #333; /* Dark background color for the footer */
    margin: 0 auto; /* Center align the content */
    padding: 0 1rem; /* Add padding for better spacing */
    text-align: center; /* Center align text inside the footer */
}

footer .social-links {
    margin-top: 1rem; /* Space above social links */
}

footer .social-links a {
    color: #fff; /* White color for social links */
    margin: 0 0.5rem; /* Space between social links */
    text-decoration: none; /* Remove underline from links */
}

footer .social-links a:hover {
    text-decoration: underline; /* Underline on hover */
}

/* Mobile-Friendly Adjustments for Location Grid */
@media (max-width: 768px) {
   header nav ul{
      flex-direction: column;
      align-items: center;
   }

   header nav ul li {
      margin: 10px 0;
   }

   .where-to-buy .location, .product {
      flex: 1 1 auto;
      max-width: 100%;
      min-width: unset; /* Remove the min-width on smaller screens */
      padding: 20px;
      margin-bottom: 20px; /* Space between items */
      box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
      border-radius: 5px;
      background-color: #fff;
   }

   .where-to-buy .location-grid, .product-grid {
      align-items: stretch;
      gap: 20px;
      display: flex;
      flex-direction: column;
      flex-wrap: wrap;
      justify-content: center;
      padding: 0 10px;
   }

}
