/* Modern, minimalist styling with specified color scheme */
/* Color palette */
:root {
  --background-color: #E8E9EB;
  --sidebar-footer-color: #5A5D6D;
  --button-link-color: #D9432E;
  --accent-color: #9AA8B2;
  --text-color: #333333;
  --white: #FFFFFF;
}

/* Base styles */
body {
  font-family: 'Poppins', 'Montserrat', 'Lato', sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

/* Header styles */
.header {
  background-color: var(--sidebar-footer-color);
  height: 100px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  box-sizing: border-box;
  position: relative;
}

.logo {
  font-size: 28px;
  font-weight: 700;
  color: var(--button-link-color);
  text-decoration: none;
  min-width: 200px;
}

.nav-links {
  display: flex;
  gap: 20px;
}

.nav-links a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  padding: 10px 15px;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.nav-links a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.categories-dropdown {
  background-color: var(--button-link-color);
  color: var(--white);
  border: none;
  padding: 12px 20px;
  border-radius: 4px;
  font-weight: 500;
  cursor: pointer;
  min-width: 180px;
}

.categories-dropdown:hover {
  background-color: #c0392b;
}

.search-container {
  display: flex;
  gap: 10px;
  min-width: 300px;
}

.search-input {
  padding: 12px;
  border: none;
  border-radius: 4px;
  flex: 1;
}

.search-button {
  background-color: var(--button-link-color);
  color: var(--white);
  border: none;
  padding: 12px 20px;
  border-radius: 4px;
  font-weight: 500;
  cursor: pointer;
}

.search-button:hover {
  background-color: #c0392b;
}

/* Hero section */
.hero {
  width: 100%;
  height: 400px;
  background-color: #cccccc;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
}

.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Main container for search results page */
.main-container {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  gap: 20px;
  box-sizing: border-box;
  position: relative;
}

/* Content sections */
.content-section {
  max-width: 1200px;
  margin: 0 auto 40px auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Special styling for content section in search results page */
.main-container .content-section {
  flex: 1;
  margin: 0 0 40px 0;
  padding: 0;
  max-width: calc(100% - 300px); /* Ensure content doesn't flow under sidebar */
}

.content-section h1 {
  color: var(--button-link-color);
  margin-bottom: 20px;
}

.content-section p {
  margin-bottom: 20px;
}

.content-section ul, .content-section ol {
  margin-bottom: 20px;
  margin-left: 20px;
}

.content-section li {
  margin-bottom: 10px;
}

/* Search result items */
.search-result-item {
  background-color: var(--white);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.search-result-item h2 {
  color: var(--button-link-color);
  margin-top: 0;
}

/* Sidebar styles (only for search results page) */
.sidebar {
  background-color: var(--sidebar-footer-color);
  color: var(--white);
  padding: 20px;
  width: 250px;
  border-radius: 8px;
  box-sizing: border-box;
  height: fit-content;
  position: fixed;
  top: 120px;
  right: 40px; /* Increased padding from right edge */
}

.sidebar h2 {
  margin-top: 0;
  color: var(--button-link-color);
}

/* Footer styles */
.footer {
  background-color: var(--sidebar-footer-color);
  color: var(--white);
  height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
  margin-top: 40px;
}

.footer a {
  color: var(--accent-color);
  text-decoration: none;
  margin: 0 10px;
}

.footer a:hover {
  text-decoration: underline;
}

/* Responsive design */
@media screen and (max-width: 600px) {
  .header {
    flex-wrap: wrap;
    height: auto;
    padding: 10px;
  }
  
  .header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 10px;
  }
  
  .header-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-top: 10px;
  }
  
  .logo {
    font-size: 24px;
  }
  
  .nav-links {
    gap: 10px;
  }
  
  .nav-links a {
    padding: 8px 10px;
    font-size: 14px;
  }
  
  .categories-dropdown {
    width: 100%;
    margin: 10px 0;
  }
  
  .search-container {
    width: 100%;
  }
  
  .sidebar {
    display: none;
  }
  
  .content-section {
    padding: 0 15px;
  }
  
  .main-container .content-section {
    max-width: 100%;
  }
  
  .main-container {
    flex-direction: column;
    padding: 0 15px;
  }
}