body {
  color: var(--color-primary);
  background-color: #f5f5f5;
  width: 100%;
  min-height: 100vh;
  margin: 0;              /* remove default browser margin */
  padding: 0;             /* remove padding that was shrinking your site */
  overflow-x: hidden;
  box-sizing: border-box;
  font-family: var(--font-primary);

}


/*header container*/
header{
 position: relative;
display: flex;
align-items: center;
justify-content: space-between;
    position: relative;
    z-index: 10;
     background-color: #444445; 
     height: 80px;
}


.logo img {

height:70px;
border-radius: 50px;
margin-left: 30px;
}

.nav-link{
   
 margin-left: auto;
    display: flex;
  align-items: center;   /* <-- makes items align vertically */
    gap: 40px;
    padding-right: 50px;
}

.nav-link ul{
  display: flex;
   align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0;
    padding: 0;
}

.nav-link a{
   align-items: center;
color: white;
text-decoration: none;
font-weight: 500;
font-size: 18px;
transition: color 0.3s ease;

}

.nav-link a:hover{
color: white;
  text-decoration: underline;
}

.logo,
.nav-link,
.nav-right {
  position: relative;
  z-index: 2;
color: white;
}

a.current {
  font-weight: bold;
color: white;
  font-size: 1.3rem;
}

.become-member {
  display: inline-block;
  background-color: #3FA752;
  padding: 12px 24px;
   border-radius: 20px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
}

.become-member:hover {
   background-color: #339e4a;
}


/* Main container for the events page */
.Community {
display: flex;
  justify-content: center; /* center the section on page */
  padding: 40px 20px;
}

.title-community{
 max-width: 1200px;
  text-align: left;
}



.text-community h1{
    font-size: 72px;
    font-weight: bold;
    margin: 20;
    color: #333;
}

.text-community img{
 width: 100vw;
  height: auto; 
   border-radius: 10px;
 margin-bottom: 20px;
  object-fit: cover; 

}


.text-button {
  display: flex;
    align-items: flex-start;      /* button aligns with top of text */
  justify-content: space-between;
  gap: 20px;
   width: 100%;                /* spacing between text and button */
  max-width: 1200px;         /* keeps things from stretching too far */
    margin-top: 20px;

}
.text-button h3{
  font-size: 24px;
  margin-bottom: 20px;
  line-height: 1.5;
  max-width: 500px; /* ✅ keeps text in a nice block */
}

.visit {
  display: inline-block;
  background-color: #3FA752;
  color: white;
  padding: 12px 24px;
   border-radius: 20px;
   width: 180px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.visit:hover {
  background-color: #339e4a;
}


/*new container*/
.info{
  display: flex;
  justify-content: center;
  align-items:flex-start; 
  gap: 20px;
  padding: 20px;
  max-width: 1500px;
    margin: 0 auto; /* center container on the page */

}

.text-info{
  text-align: left;
    margin: 0; /* removed unnecessary margins */
  width: 50%; /* flexible width */
  gap: 20px;
 
}

.text-info h1{
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
}

.text-info h3{
  font-size: 20px;
  margin-bottom: 15px;
  line-height: 1.5;
}

.info-map{
  margin-right: 50px;
  margin-bottom: 20px;
  border: 2px solid #2c3e50;
  border-radius: 12px;
  padding: 10px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
background-color: #D3D3D3;
  width: 45%; /* flexible width */
margin: 0; 
text-align: center;
}

.info-map h2{
  font-size: 30px;
  margin-bottom: 10px;
  color: #333;
  text-align: left;

}

.info-map img{
  width: 600px; /* fit container width */
  height: auto;
  border-radius: 15px;
  margin-left: 10px;
  margin-right: 10px; 
  border: 2px #3FA752;;
}

/* new container */
.user{
  display: flex;
  justify-content: center;
  align-items:flex-start; 
  gap: 20px;
  padding: 20px;
  max-width: 1500px;
  margin: 0 auto; /* center container on the page */
  margin-bottom: 30px;
}

.accessibility,
.restaurant,
.shop{
  width: 450px; /* flexible width */
  height: 550px;
  margin: 0; /* removed unnecessary margins */
  text-align: left;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.accessibility img,
.restaurant img,
.shop img{
  width: 100%; /* fit container width */
  height: 250px;
  border-radius: 10px;
  margin-bottom: 15px;
  object-fit: cover; 
}

.accessibility h2,
.restaurant h2,
.shop h2{
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
}

.accessibility p,
.restaurant p,
.shop{
  font-size: 16px;
  line-height: 1.5;
  color: #555;
}


/* footer */
.footer {
  background-color: #4d908e; /* teal-like background */
  color: white;
  padding: 40px 20px;
  font-family: Arial, sans-serif;
  margin-top: 10px
}

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-column {
  flex: 1 1 220px;
  margin: 10px;
}

.footer-column h3 {
  font-size: 18px;
  margin-bottom: 10px;
  font-weight: bold;
}

.footer-column p,
.footer-column li {
  font-size: 14px;
  line-height: 1.6;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column ul li {
  margin-bottom: 5px;
}

.footer-column a {
  color: white;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-column a:hover {
  color: #FFD93D; /* highlight yellow */
}

.footer-bottom {
  margin-top: 30px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo {
  height: 40px;
  border-radius: 50%;
}

/* Mobile screens (max-width: 768px) */
@media (max-width: 768px) {

  /* Ensure body doesn't overflow */
  body, html {
    max-width: 100%;
    overflow-x: hidden;
  }

  /* Header horizontal */
  header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    height: auto;
    padding: 10px 15px;
  }

  .logo img {
    height: 50px;
    margin-left: 5px;
  }

  .nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-right: 10px;
  }

  .nav-link ul {
    display: flex;
    flex-direction: row;
    gap: 10px;
    margin: 0;
    padding: 0;
  }

  .nav-link a {
    font-size: 14px;
  }

  a.current {
    font-size: 1rem;
  }

  .become-member {
    padding: 6px 12px;
    font-size: 12px;
  }

  /* Community Section */
  .Community {
    flex-direction: column;
    padding: 20px 10px;
  }

  .title-Community h1 {
    font-size: 28px;
    margin-bottom: 15px;
    text-align: center;
  }

  .community-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 15px;
  }

  .text-button {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
  }

  .text-button h2 {
    font-size: 16px;
    max-width: 100%;
  }

  .visit {
    width: auto;
    padding: 8px 16px;
    font-size: 14px;
  }

  /* Info Section */
  .info {
    flex-direction: column;
    gap: 15px;
    padding: 15px 10px;
  }

  .text-info, .info-map {
    width: 100%;
    text-align: center;
  }

  .text-info h2, .info-map h2 {
    font-size: 20px;
  }

  .text-info h3 {
    font-size: 14px;
  }

  .info-map img {
    width: 100%;
    height: auto;
    max-height: 200px;
    border-radius: 10px;
  }

  /* User Section */
  .user {
    flex-direction: column;
    gap: 15px;
    padding: 15px 10px;
  }

  .accessibility,
  .restaurant,
  .shop {
    width: 100%;
    height: auto;
    padding: 15px;
    text-align: center;
  }

  .accessibility h2,
  .restaurant h2,
  .shop h2 {
    font-size: 20px;
  }

  .accessibility p,
  .restaurant p,
  .shop p {
    font-size: 14px;
  }

  .accessibility img,
  .restaurant img,
  .shop img {
    width: 100%;
    height: auto;
    margin-bottom: 10px;
  }

  /* Footer */
  .footer-container {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    padding: 0 10px;
  }

  .footer-column {
    flex: 1 1 45%; /* two columns per row if possible */
    text-align: center;
    margin: 5px 0;
  }

  .footer-column h3 {
    font-size: 16px;
  }

  .footer-column p,
  .footer-column li {
    font-size: 13px;
  }

  .footer-bottom {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
  }

  .footer-logo {
    height: 35px;
  }
}
