body {
  margin: 0;
  font-family: Arial, sans-serif;
  scroll-behavior: smooth;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  height: 100vh; /* Full viewport height */
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  background-color: white;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  width: 95%;
  z-index: 1000;
}

.logo-container {
  display: flex;
  align-items: center;
}

.logo {
  height: 50px;
  margin-right: 10px;
}

.header .loginButtons a {
  margin-left: 10%;
  padding: 2%;
  border: none;
  color: #bf0a0a;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  width: 20%;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.header .loginButtons a:hover {
  background-color: #bf0a0a;
  color: white;
}

#authContainer {
  width: 25%;
}

/* Dropdown container */
.userDropdown {
  position: relative;

  margin-right: 3%;
}

/* User name button */
.user-name {
  background: none;
  border: none;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  color: #bf0a0a;
  padding: 10px 15px;
  border-radius: 5px;
  transition: background 0.3s ease;
  margin-left: 25%;
}

.user-name:hover {
  background: rgba(191, 10, 10, 0.1);
}

/* Dropdown content */
.dropdown-content {
  display: none;
  position: absolute;
  right: 30%;
  background: white;
  border-radius: 5px;
  border: 1px solid #ddd;
  box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.2);
  min-width: 150px;
  z-index: 10;
  overflow: hidden;
}

/* Show dropdown on hover */
.userDropdown:hover .dropdown-content {
  display: block;
}

/* Dropdown links */
.dropdown-content a {
  display: block;
  color: #333;
  text-decoration: none;
  padding: 10px 15px;
  font-size: 14px;
  transition: background 0.3s ease;
}

.dropdown-content a:hover {
  background: rgba(191, 10, 10, 0.1);
  color: #bf0a0a;
}

.sidebar {
  width: 10%;
  background-color: #ffffff;
  height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  margin-top: 70px;
  z-index: 900; /* Ensure sidebar is behind the content */
}

.main-content {
  width: 100%; /* Make main content take up the remaining space */
  margin-top: 70px; /* Give space for the fixed header */
  padding-bottom: 50px; /* Ensure space at the bottom for footer */
  min-height: calc(100vh - 70px - 150px);
}

.hero {
  display: absolute;
  flex-direction: row;
  align-items: center;
  position: relative;
  padding: 140px 80px 70px 80px;
  background-color: #ffffff;
  height: 60vh;
  width: 100%;
}

.hero h1 {
  font-size: 48px;
  color: #333;
  margin-bottom: 20px;
}

.hero-image {
  position: absolute; /* Absolutely position the image within the .hero container */
  right: 0px; /* Adjust the position to the right side of the container */
  top: 50%; /* Center vertically */
  transform: translateY(-50%); /* Fine-tune the vertical centering */
  width: 755px; /* Adjust size of the image */
  height: auto;
  max-width: 100%; /* Ensure image does not exceed container width */
}

.search-bar {
  position: relative;
  margin-top: 20px;
  display: flex; /* Use flexbox to align input and button */
  align-items: center; /* Vertically center the button and input */
  width: 500px; /* Match the input width */
  border: 1px solid #ccc; /* Ensure consistent border for the container */
  border-radius: 25px;
  padding: 5px; /* Add padding to ensure proper spacing */
  background-color: #fff;
}

.search-bar input {
  flex: 1; /* Allow the input to take remaining space */
  padding: 10px 15px; /* Adjust padding for alignment */
  font-size: 16px;
  border: none; /* Remove individual borders */
  outline: none;
  border-radius: 25px; /* Match container radius */
}

.search-bar button {
  padding: 8px 12px; /* Adjust size for better fit */
  font-size: 16px;
  background-color: #bf0a0a;
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  margin-left: 5px; /* Add spacing between input and button */
}

/* Add these styles to your Landingpage.css file */

.hero h3 {
  margin-top: 3.5%;
  margin-left: 0.5%;
  font-size: 1.5rem;
  color: #000000;
  min-height: 1.5em;
  text-align: left;
}

.hero h3 .typing-text {
  color: #bf0a0a;
  font-weight: 5000;
}

.dropdown-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: white;
  border: none; /* Remove the border */
  border-radius: 8px;
  margin-top: 0; /* Remove margin to avoid gap */
  max-height: 200px;
  overflow-y: auto;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Keep shadow for dropdown effect */
  z-index: 1000;
}

.dropdown-item {
  padding: 10px;
  cursor: pointer;
  border-bottom: 1px solid #ddd;
}

.dropdown-item:hover {
  background-color: #f0f0f0;
}

.browse-section {
  text-align: center;
  margin-top: 100px;
  padding-bottom: 100px;
  width: 100%;
}

.browse-heading {
  font-size: 28px;
  color: #333;
  margin-bottom: 30px;
}

.grid-container {
  display: grid;
  margin-left: 10%;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  justify-content: center;
  margin: 0 auto;
  max-width: 70%;
}

.grid-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease;
}

.grid-item a {
  display: block;
  text-decoration: none;
  color: inherit;
}

.grid-item img {
  width: 300px;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.grid-item p {
  margin-top: 10px;
  font-size: 16px;
  font-weight: bold;
}

.grid-item:hover {
  transform: translateY(-10px);
}

.grid-item:hover img {
  transform: scale(1.05);
}

.grid-item:hover p {
  color: #bf0a0a; /* Optional: Change text color on hover */
}

.footer {
  background-color: #000;
  color: white;
  padding: 40px 80px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  bottom: 0;
  
  font-size: 14px;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
}

.footer-section h3 {
  margin-bottom: 10px;
  font-size: 18px;
  padding: 0;
}

.footer-section p {
  margin: 0;
  line-height: 1.5;
}

.footer-section a {
  color: white;
  text-decoration: none;
}

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

/* For mobile phones */
@media screen and (max-width: 768px) {
  .hero {
    padding: 80px 0px 0px 0px;
    height: 50vh; /* Adjust height for better mobile viewing */
    display: flex;
    flex-direction: column; /* Stack elements vertically */
    align-items: center; /* Center align horizontally */
    text-align: center; /* Ensures text elements are centered */
  }

  .search-bar {
    justify-content: center;
    display: flex;
    align-items: center;
    gap: 10px; /* Space between input and button */
    width: 100%; /* Optional: Adjust width */
    max-width: 85%; /* Adjust as needed */
  }

  .search-bar input {
    flex: 1;
    padding: 10px;

    border-radius: 5px;
    font-size: 14px;
  }

  .search-bar button {
    padding: 10px 15px;
    border: none;
  }

  .header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0px;
    margin: 0%, 3%, 0%, 3%;
    background-color: white;
    box-shadow: 0 0px 0px rgba(0, 0, 0, 0.1);

    right: 0;
    width: 100%;
    z-index: 1000;
  }

  .header .loginButtons {
    margin-right: 15px;
    display: flex;
    flex-direction: row;

    justify-content: space-between;
  }
  .header .loginButtons a {
    font-size: 55%;
    display: flex;
    flex-direction: row;
    margin-left: 0;
    width: 40%;
  }

  .logo {
    height: 40px;
    margin-left: 25px;
  }

  .hero h1 {
    font-size: 35px;
    padding: 0 10px;
    text-align: center;
  }

  .hero-image {
    display: none; /* Hide the image on mobile */
  }

  .hero h3 {
    text-align: center;
    font-size: 1.3em;
    margin-top: 10%;
  }

  .grid-container {
    grid-template-columns: 1fr;
    gap: 15px;
    grid-template-columns: repeat(2, 1fr);
    padding: 0;
    justify-content: center;
    max-width: 100%;
    margin: 0% 3% 0% 3%;
  }

  .grid-item img {
    width: 100%;
    max-width: 300px;
    height: auto;
  }

  .grid-item p {
    font-size: 12px;
  }
  .browse-section {
    padding-bottom: 50px;
    width: 100%;
    align-items: center;
  }

  .browse-heading {
    font-size: 24px;
  }

  .footer {
    padding: 30px 0px 30px 0px;
    flex-direction: column;
    font-size: 8px;
    
  }

  .footer-section {
    width: 100%;
    max-width: 90%;
    margin-left: 5%;
    padding: 0px 0; /* Add padding to separate sections */
    text-align: left; /* Center-align text */
  }

  .footer-section h3 {
    margin-bottom: 10px;
    font-size: 10px;
  }

  .footer-section:last-child {
    margin-bottom: 0;
  }
}
