/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: #333;
}

/* Ensure static HTML header doesn't overlap Material-UI AppBar */
body>header:not(.auth-header) {
  z-index: 1;
  position: relative;
}

/* Navigation */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #000000DE;
}

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

nav ul li a {
  padding: 0.5rem 1rem;
  text-decoration: none;
  color: #2c3e50;
}

/* Hero section */
.hero {
  text-align: center;
  padding: 4rem 2rem;
  background-color: #f8f9fa;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #2c3e50;
}

.cta-button {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  margin-top: 1rem;
  background-color: #3498db;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.cta-button:hover {
  background-color: #2980b9;
}

/* Features section */
.features {
  padding: 4rem 2rem;
  flex: 1;
  min-height: 400px;
  /* Ensure consistent minimum height */
  /* Allow content to expand and fill available space */
}

.features h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.feature {
  text-align: center;
  padding: 2rem;
  background-color: #fff;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Footer */
footer {
  background-color: #2c3e50;
  color: #fff;
  padding: 2rem 5%;
}

/* Ensure footer content doesn't get hidden behind drawer on narrow layouts */
footer {
  box-sizing: border-box;
  overflow-x: hidden;
  word-wrap: break-word;
}

/* Ensure footer content wraps properly when padding is applied */
footer .footer-content {
  max-width: 100%;
  box-sizing: border-box;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
}

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

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive design */
@media (max-width: 768px) {
  nav {
    flex-direction: column;
    text-align: center;
  }

  nav ul {
    margin-top: 1rem;
  }

  .hero h1 {
    font-size: 2rem;
  }
}

/* Main content area consistency */
main {
  min-height: 70vh;
  /* Ensure minimum height for consistent layout */
  display: flex;
  flex-direction: column;
}

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

.about-hero {
  text-align: center;
  padding: 4rem 2rem;
  background-color: #f8f9fa;
  margin-bottom: 2rem;
}

.about-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #2c3e50;
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  flex: 1;
  min-height: 400px;
  /* Ensure consistent minimum height */
  /* Allow content to expand and fill available space */
}

.about-section {
  margin-bottom: 3rem;
}

.about-section h2 {
  color: #2c3e50;
  margin-bottom: 1rem;
}

.about-section ul {
  list-style-position: inside;
  margin-left: 1rem;
}

.about-section ul li {
  margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
  .about-hero h1 {
    font-size: 2rem;
  }

  .about-content {
    padding: 1rem;
  }
}

.contact-hero {
  text-align: center;
  padding: 4rem 2rem;
  background-color: #f8f9fa;
  margin-bottom: 2rem;
}

.contact-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #2c3e50;
}

.contact-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  display: grid;
  gap: 3rem;
}

.contact-info,
.contact-message {
  background-color: #fff;
  padding: 2rem;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.contact-details {
  display: grid;
  gap: 2rem;
  margin-top: 1.5rem;
}

.contact-item h3 {
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

.contact-item a {
  color: #3498db;
  text-decoration: none;
}

.contact-item a:hover {
  text-decoration: underline;
}

.contact-message p {
  margin-top: 1rem;
}

@media (max-width: 768px) {
  .contact-hero h1 {
    font-size: 2rem;
  }

  .contact-content {
    padding: 1rem;
  }
}
