/* Positional Reset */
* {
    margin: 0;
    padding: 0;
    border: 0;
    box-sizing: border-box;
}

/* Wrapper for Centering Content */
.wrapper {
    width: 80%;
    margin: 20px auto;
    background: #fff;
    padding: 20px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #ccc;
}

/* General Page Styles */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
    color: #333;
}

header h1 {
    color: #555;
    font-size: 2em;
    font-weight: bold;
}

header p {
    color: #d35400;
    font-size: 1.4em;
    font-weight: bold;
}

nav {
    background: black;
    padding: 10px;
    text-align: center;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 0;
}

nav ul li {
    display: inline;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 10px 15px;
    display: inline-block;
}

nav ul li a.active {
    background: #d35400;
    color: white;
}

main {
    background: white;
    padding: 20px;
    margin: 10px 0;
}

h2 {
    color: #d35400;
    font-size: 1.8em;
    font-weight: bold;
}

blockquote {
    background: #d35400;
    color: white;
    padding: 10px;
    font-style: italic;
    float: right;
    width: 250px;
    text-align: center;
}

footer {
    background: #fff;
    color: black;
    text-align: left;
    padding: 15px;
    margin-top: 20px;
    font-size: 0.9em;
    border-top: 1px solid #ccc;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .wrapper {
        width: 95%;
    }
    nav ul {
        flex-direction: column;
        align-items: center;
    }
}

/* JavaScript-based active class assignment */
<script>
  document.addEventListener("DOMContentLoaded", function() {
      document.querySelectorAll("nav ul li a").forEach(link => {
          if (link.href === window.location.href) {
              link.classList.add("active");
          }
      });
  });
</script>