:root {
  --primary: #0056b3;
  --primary-dark: #003d7a;
  --secondary: #333333;
  --accent: #007bff;
  --light: #f8f9fa;
  --dark: #212529;
  --white: #ffffff;
  --gray: #6c757d;
  --light-gray: #e9ecef;
}

/* Body adjustments */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--dark);
  margin: 0; 
  padding: 0;
  background-color: var(--light);
}

html, body {
  width: 100%;
  overflow-x: hidden; 
}
/*--------------------*/

header {
  background-color: #222;
  padding: 10px 0;
  color: white;
}

header nav ul {
  list-style-type: none;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 30px;
  margin: 0;
  padding: 0 50px; /* reduced padding for better layout */
}
header nav ul li img {
  height: 40px;
  margin-right: 0px; /* space between logo and links */
}

header nav ul li a {
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  padding: 10px 15px;
  font-size: 18px;
  font-weight: 500;
  margin-left: 0; /* reset negative margin */
  transition: background-color 0.3s ease;
}

header nav ul li a:hover {
  background-color: #444;
  border-radius: 4px;
}
*/
/*--------------------*/
/* Container for content that should have margins */
.content-container {
  margin-left: 100px;
  margin-right: 100px;
}

/* Main Header Styles */
.main-header {
  background-color: #222;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%; 
  margin-left: 0; 
  margin-right: 0; 
}

.main-header nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
/*  margin: 0 auto;
  padding: 0 0px; */
}

.main-header nav ul {
  display: flex;
  margin: 0px;
  margin-left: 20px; 
  padding: 0;
  align-items: center;
}
/*
.main-header nav ul li {
  margin-right: 0px;
}

.main-header nav ul li:last-child {
  margin-right: 0;
} *

.main-header nav ul li a {
  color: var(--white);
  font-weight: 500;
  margin-left: -20px;
  transition: opacity 0.3s;
}
/*
.main-header nav ul li a:hover {
  opacity: 0.8;
}

.main-header nav ul li img {
  height: 40px;
  width: auto;
}

.main-header ul li {
  padding-left: 0;
}
*/
.main-header ul li:before {
  content: none;
}

/* Page Hero Section */
.page-hero {
  background-color: var(--primary-dark);
  color: var(--white);
  padding: 5px 0;
  text-align: center;
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('/static/images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  margin-top: 5px;
}

.page-hero .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 10px;
}

.page-hero h1 {
  margin: 0;
  font-size: 2.5rem;
  font-weight: 700;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.page-hero p {
  font-size: 1.2rem;
  margin-top: 5px;
  opacity: 0.9;
}

/* Main Content Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Section Styling */
.section {
  background-color: var(--white);
  padding: 40px;
  margin: 30px 0;
  border-radius: 8px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.section h2 {
  color: var(--primary);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 10px;
  margin-top: 0;
  font-size: 1.8rem;
}

.section p {
  color: var(--dark);
  line-height: 1.7;
}

/* Product Categories */
.product-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 30px 0;
}

.product-category {
  background-color: var(--light-gray);
  border-left: 4px solid var(--accent);
  padding: 25px;
  flex: 1 1 300px;
  border-radius: 4px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.product-category:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.product-category h3 {
  color: var(--secondary);
  margin-top: 0;
  font-size: 1.3rem;
}

.product-category p {
  color: var(--gray);
  margin-bottom: 0;
}

/* List Styles */
ul {
  padding-left: 20px;
  list-style-type: none;
}

ul li {
  margin-bottom: 12px;
  position: relative;
  padding-left: 25px;
}

ul li:before {
  content: "•";
  color: var(--accent);
  font-size: 1.5rem;
  position: absolute;
  left: 0;
  top: -3px;
}

/* Footer Styling */
body > footer {
  margin-top: auto;
}
/* Footer Styling */
footer {
  background-color: #222;
  color: white;
  display: flex;
  justify-content: center;
  gap: 40px;
  padding: 15px 0;
  margin-top: 40px;
  width: 100vw; /* Use viewport width to ensure full width */
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

footer a {
  color: #ccc;
  text-decoration: none;
  margin: 0 10px;
}

footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.main-header nav ul li a {
  text-decoration: none !important; /* Force no underline */
}

.main-header nav ul li a:hover {
  text-decoration: none !important; /* Ensure no underline on hover */
}

/* Responsive Design */
/* Global box-sizing for predictable layouts */
*, *::before, *::after {
  box-sizing: border-box;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
  /* Reduce margins on content container to avoid horizontal scrolling */
  .content-container {
    margin-left: 20px;
    margin-right: 20px;
  }

  /* Stack header nav vertically */
  .main-header nav {
    flex-direction: column;
    padding: 0px 0px;
  }

  /* Nav ul vertical list and center items */
  .main-header nav ul {
    flex-direction: column;
    margin: 1px 0 0 0 !important; /* Override margin-left: -88px */
    padding: 0;
    align-items: center;
    gap: 1px;
  }

  /* Nav items spacing */
  .main-header nav ul li {
    margin-right: 0;
  }

  /* Make footer stack items vertically on mobile */
  footer {
    flex-direction: row;
    gap: 15px;
    padding: 20px 10px;
    text-align: left;
    flex-wrap: wrap;
  }

  /* Adjust product categories to be full width */
  .product-categories {
    flex-direction: column;
  }

  .product-category {
    flex: 1 1 100%;
    padding: 20px;
  }

  /* Adjust page hero padding and font size for smaller screen */
  .page-hero {
    padding: 30px 10px;
  }

  .page-hero h1 {
    font-size: 1.8rem;
  }

  .page-hero p {
    font-size: 1rem;
  }
}
