/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Flexbox layout on body ensures footer stays at the bottom */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  /* background-image: linear-gradient(rgba(244, 246, 248, 0.1), rgba(244, 246, 248, .8)), url('images/pathlent_bridge_path3.jpg'); */
  background-image: url('images/pathlent_bridge_path3.jpg');
  background-size: cover; /* del */
  /* background-size: 100%; */
  background-position: center; /* unset; */
  background-repeat: no-repeat;
  background-attachment: fixed;
  display: flex;
  flex-direction: column;
  min-height: 100vh; /* Forces body to take full screen height */
}

/* Header - Light Palette */
header {
  /* background-color: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02); */
  padding: 0.8rem 1.6rem;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
}

/* Footer - Light Palette */
footer {
  display: flex;
  /* align-items: center;
  text-align: center; */
  padding: 0.8rem;
  background-color: rgba(255, 255, 255, 0.95);
  border-top: 1px solid #e2e8f0;
  color: #64748b;
  font-size: 0.9rem;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  width: 100%;
  flex-wrap: wrap-reverse;
}

footer h1 {
    font-size: 1.5rem;
    font-weight: bold;
}

.footer-content {
  width: 100%;
}

.footer-info {
    padding-left: 1rem;
    padding-right: 2rem;
    min-width: 300px;
    margin-top: 0.8rem;
    /* max-width: 33%; */
}

.footer-group {
  display: flex;
  flex-wrap: wrap;
}

.footer-company,
.footer-events,
.footer-connect {
    padding-left: 1rem;
    padding-right: 1rem;
}

.footer-company ul, 
.footer-events ul,
.footer-connect ul {
  list-style: none;
  margin-left: 0px;
}



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

.logo-container img {
  height: 35px;
  width: auto;
}

.logo-container h1 {
  font-size: 1rem;
  color: #0369a1; /* Darker blue for visibility on light bg */
}

.logo-container h2 {
    font-size: 0.8rem;
    color: black;
}

nav ul {
  list-style: none;
  margin-left: 2.0rem;
  display: flex;
  gap: 1.5rem;
}

nav a {
  color: #475569; /* Slate grey for text legibility */
  text-decoration: none;
  font-weight: bold;
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

nav a:hover,
nav a.active {
  color: #0284c7; /* Vibrant blue accent */
}

/* Main Content Layout */
main {
  flex: 1;  /* Pushes the footer down when page content is short */
  width: 100%;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  /*
  max-width: 50%;
  margin: 2rem auto;
  padding: 0;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 8px; 
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05); */
}

.homepage-layout {
  font-size: 1rem;;
}

.aboutpage-layout {
  font-size: 1rem;
  width: 100%;
}

.main-title {
  width: 100%;
  text-align: center;
  font-size: 36px;
  letter-spacing: 1px;
  line-height: 1;
  padding-bottom: 1rem;
}

.main-detail {
  width: 48%;
  text-align: center;
}

.main-content {
  width: 48%;
}

.main-content h1 {
    font-family: Tahoma;
    font-size: 2rem;
    line-height: 1.2;
    padding-top: 5rem;
    /* padding-bottom: 2rem; */
    margin-bottom: 1.5rem;
}

.main-content p {
}

.centre {
  text-align: center;
}

.events-content {
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 8px; 
  margin-bottom: 1rem;
}

.maillist-content {
  padding: 1rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
  background: rgba(255, 255, 255, 0.95);
  color: #0f172a;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  /* text-align: center; */
  width: 100%;
}

.input_wrapper {
  width: fit-content;
  border-radius: 6px;
  border: 1px solid gray;
  padding: 0rem 0.5rem 0.5rem 0.5rem;
  background-color: rgb(235, 235, 235);
}

.input_wrapper input {
  border: 0px;
  border-radius: 0px;
}

.label_wrapper {
  /* font-size: 80%; */
  margin: 0;
}

.label_wrapper span {
  font-size: 80%;
  padding: 0px;
  margin: 0px;
}

.maillist-content a {
  padding: 0.5rem 1.5rem 0.5rem 1.5rem;
  margin-top: 1rem;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.95);
  color: #0f172a;
  border-radius: 8px;
  border: 1px solid black;
  text-align: center;
}

.maillist-content button {
  padding: 0.5rem 1.5rem 0.5rem 1.5rem;
  margin-top: 1rem;
  border: 1px solid black;
  border-radius: 8px;
}

h2 {
  font-size: 1.25rem;
  color: #0f172a;
  margin-bottom: 1rem;
}

.event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.event-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 1rem 0.5rem 0rem;
  border-radius: 6px;
  margin-bottom: 0.75rem;
}

.event-card p {
  margin-bottom: 0.8em;
}

.event-card a {
  padding: 0.5rem 1.5rem 0.5rem 1.5rem;
  margin-top: 1rem;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.95);
  color: #0f172a;
  border-radius: 8px;
  border: 1px solid black;
  text-align: center;
}

.clear a {
  padding: 0px;
  margin: inherit;
  border: 0px;
  border-radius: 0px;
  text-decoration: underline;
}

/* Forms & Cards */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.service-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 1.5rem;
  border-radius: 6px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 500px;
  margin-top: 1rem;
}

.contact-form label {
  font-weight: bold;
}

.contact-form input,
.contact-form textarea {
  padding: 0.75rem;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  font-size: 1rem;
}

.contact-form button {
  background-color: #0284c7;
  color: white;
  font-weight: bold;
  padding: 0.75rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.contact-form button:hover {
  background-color: #0369a1;
}


@media screen and (min-width: 768px) {
  .homepage-layout {
    width: 48%;
    padding-left: 1rem;
  }
  
  .aboutpage-layout {
    width: 48%;
    padding-left: 1rem;
  }

  .main-content, .main-detail {
    width: 100%;
  }
  .maillist-content {
    width: 100%;
  }
}

@media screen and (max-width: 450px) {
  .logo-container {
    display: none;
  }
  .main-title {
    font-size: 24px;
  }
}