/* css/style.css (Final Version) */

/* --- Global Reset & Basic Setup --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  background-color: #f4f4f4;
}

a {
  color: #007bff;
  text-decoration: none;
}

a:hover {
  color: #0056b3;
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

p {
  margin-bottom: 1em; /* Add default spacing below paragraphs */
}

h1, h2, h3, h4, h5, h6 {
  margin-bottom: 0.8em;
  line-height: 1.3;
  font-weight: 500;
}

/* Remove bottom margin from the last element in a box for clean spacing */
.box > *:last-child {
  margin-bottom: 0;
}

/* --- Page Container --- */
#page-container {
  max-width: 1100px;
  margin: 20px auto;
  background-color: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* --- Header (#header) --- */
#header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 30px;
  background-color: #eee;
  border-bottom: 1px solid #ddd;
  flex-wrap: wrap;
}

#logo-image {
  max-height: 60px;
  width: auto;
  margin-right: 20px;
}

#branding {
  flex-grow: 1;
}

#branding h1#logo a {
  color: #585858;
  text-decoration: none;
}

#branding h1#logo a .secondary-color {
  color: #2a2e3a;
}

#header h1#logo {
  font-size: 2em;
  font-weight: 300;
  margin: 0;
  color: #000;
}

#header h2#slogan {
  font-size: 1.1em;
  font-weight: 600;
  color: #555;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* --- Navigation Menu (#menu) --- */
#menu ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
}

#menu li {
  margin-left: 5px;
}

#menu a {
  display: block;
  padding: 10px 15px;
  background-color: #555;
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

#menu a:hover {
  background-color: #007bff;
  color: #fff;
  text-decoration: none;
}

#menu li.current a {
  background-color: #007bff;
  font-weight: bold;
}

/* --- Content Wrap (#content-wrap) --- */
#content-wrap {
  display: flex;
  padding: 20px;
  flex-wrap: wrap;
}

/* --- Main Content Area (#main) --- */
#main {
  flex: 3;
  padding-right: 20px;
  min-width: 0;
}

.box {
  background-color: #f9f9f9;
  padding: 20px;
  margin-bottom: 20px;
  border: 1px solid #eee;
  border-radius: 4px;
}

#main h1, #main h2 {
  color: #333;
  border-bottom: 1px solid #eee;
  padding-bottom: 5px;
  margin-top: 0;
}

#main h3 {
  margin-top: 2em;
  font-weight: 600;
  border-bottom: 1px solid #eee;
  padding-bottom: 5px;
}

/* --- THIS IS THE NEW RULE FOR LISTS --- */
#main .box ul,
#main .box ol {
  padding-left: 25px; /* Define YOUR default indentation */
  margin-bottom: 1em; /* Add space below the list */
}

#main .box li {
  margin-bottom: 0.5em; /* Add space between list items */
}
/* --- END NEW RULE --- */


/* --- Sidebar (#sidebar) --- */
#sidebar {
  flex: 1;
  background-color: #f9f9f9;
  padding: 15px;
  border: 1px solid #eee;
  border-radius: 4px;
  min-width: 200px;
}

#sidebar h3 {
  font-size: 1.2em;
  color: #444;
  margin-top: 15px;
  margin-bottom: 10px;
  padding-bottom: 5px;
  border-bottom: 1px solid #ddd;
}

#sidebar h3:first-child {
  margin-top: 0;
}

#sidebar ul.sidemenu {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

#sidebar ul.sidemenu li {
  margin-bottom: 5px;
  border-bottom: 1px dotted #ddd;
}
#sidebar ul.sidemenu li:last-child {
  border-bottom: none;
}

#sidebar ul.sidemenu a {
  display: block;
  padding: 5px 0;
  color: #333;
}

#sidebar ul.sidemenu a:hover {
  color: #007bff;
  text-decoration: none;
}

/* --- Contact Form Styles --- */
#contact-form label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

#contact-form input[type="text"],
#contact-form input[type="email"],
#contact-form textarea,
#contact-form select {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1em;
  background-color: #fff;
}

#contact-form textarea {
  min-height: 100px;
  resize: vertical;
}

#contact-form .button {
  padding: 10px 20px;
  background-color: #28a745;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1.1em;
  transition: background-color 0.2s ease;
}

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

/* --- Footer (#footer-wrap) --- */
#footer-wrap {
  display: flex;
  justify-content: space-between;
  padding: 20px 30px;
  background-color: #333;
  color: #ccc;
  border-top: 3px solid #007bff;
  font-size: 0.9em;
  flex-wrap: wrap;
}

#footer-wrap p {
  margin: 5px 0;
}

#footer-wrap .footer-left {
  text-align: left;
}

#footer-wrap .footer-right {
  text-align: right;
}

#footer-wrap a {
  color: #8dcaff;
}

#footer-wrap a:hover {
  color: #fff;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
  #header {
    flex-direction: column;
    align-items: flex-start;
  }
  #branding {
    margin-bottom: 15px;
  }
  #menu {
    width: 100%;
    justify-content: center;
    margin-top: 10px;
  }
  #menu ul {
    justify-content: center;
  }
  #content-wrap {
    flex-direction: column;
  }
  #main {
    padding-right: 0;
    margin-bottom: 20px;
  }
  #footer-wrap {
    flex-direction: column;
    text-align: center;
  }
  #footer-wrap .footer-left,
  #footer-wrap .footer-right {
    text-align: center;
    width: 100%;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 15px;
  }
  #header, #content-wrap, #footer-wrap {
    padding-left: 15px;
    padding-right: 15px;
  }
  #menu a {
    padding: 8px 10px;
  }
}

.hidden {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
  border: 0;
  margin: -1px;
  padding: 0;
}
