/* --- Global Styles --- */
:root {
  --primary-color: #007BFF; /* Tech Blue */
  --secondary-color: #333333; /* Dark Gray */
  --accent-color: #FF6B35; /* Orange */
  --background-color: #ffffff;
  --text-color: #333333;
  --border-color: #ddd;
  --container-max-width: 1200px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-color);
}

h1, h2, h3, h4, h5, h6 {
  margin-bottom: 1rem;
  color: var(--secondary-color);
}

p {
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: var(--primary-color);
}

a:hover {
  text-decoration: underline;
  color: var(--accent-color);
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Header --- */
header {
  background-color: white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  position: sticky; /* Fixed header effect */
  top: 0;
  z-index: 1000;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.logo h1 a {
  color: var(--secondary-color);
  font-size: 1.5rem;
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 1.5rem;
}

nav ul li a {
  color: var(--text-color);
  font-weight: 500;
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent; /* Subtle underline effect */
}

nav ul li a:hover,
nav ul li a.active { /* Add 'active' class to current page link */
  border-bottom: 2px solid var(--primary-color);
  text-decoration: none; /* Remove default underline on hover */
}

/* --- Main Content --- */
main {
  padding: 2rem 0;
  min-height: calc(100vh - 200px); /* Adjust based on header/footer height */
}

/* --- Footer --- */
footer {
  background-color: var(--secondary-color);
  color: white;
  padding: 2rem 0 1rem;
  margin-top: auto;
}

footer .container {
  text-align: center;
}

footer p {
  margin-bottom: 0.5rem;
  color: #ccc; /* Lighter text for footer */
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  text-align: center;
  font-weight: 500;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background-color: #0056b3;
}

.btn-accent {
  background-color: var(--accent-color);
  color: white;
}

.btn-accent:hover {
  background-color: #e55a2a;
}

/* --- Product/News Listing Grid --- */
.listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.listing-card {
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 1.5rem;
  background-color: white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.listing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.listing-card h3 {
  margin-top: 0;
}

.listing-card p.meta {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

/* --- Tables (for product specs) --- */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  background-color: white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

th, td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

th {
  background-color: var(--primary-color);
  color: white;
  font-weight: 600;
}

tr:nth-child(even) {
  background-color: #f8f9fa;
}

tr:hover {
  background-color: #e9f7fe;
}

/* --- FAQ Accordion (using <details> and <summary>) --- */
.faq details {
  margin-bottom: 1rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  overflow: hidden;
}

.faq summary {
  padding: 1rem;
  cursor: pointer;
  background-color: #f8f9fa;
  font-weight: 500;
  list-style: none; /* Remove default marker */
}

.faq summary::-webkit-details-marker { /* Remove default marker in Webkit */
  display: none;
}

.faq details[open] summary {
  background-color: var(--primary-color);
  color: white;
}

.faq details p {
  padding: 1rem;
  margin-bottom: 0;
  background-color: white;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
  header .container {
      flex-direction: column;
      text-align: center;
  }

  nav ul {
      margin-top: 1rem;
      flex-wrap: wrap; /* Allow wrapping on small screens */
      justify-content: center; /* Center align on mobile */
  }

  nav ul li {
      margin: 0.5rem 1rem; /* Add space vertically */
  }

  .container {
      padding: 0 15px;
  }

  .listing-grid {
      grid-template-columns: 1fr; /* Single column on mobile */
      gap: 1.5rem;
  }
}