/* Global Resets & Fluid Box Sizing */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  margin: 30px 40px;
  font-family: Arial, sans-serif;
  background-color: #F4F4F4;
  color: #333333; /* Soft dark color for better reading contrast */
}

h1, h2, h3 {
  font-family: Verdana, sans-serif;
  color: #6884CC; 
}

/* --- STYLED TEXT NAVIGATION MENU --- */
.navbar {
  background-color: #F4F4F4;
  position: sticky; /* Removed redundant -webkit prefix */
  top: 0;
  z-index: 1000;
  padding: 15px 0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05); 
}

.nav-container {
  display: flex;
  flex-wrap: wrap; 
  justify-content: center; 
  gap: 10px; /* Even spacing between navigation blocks */
}

.nav-container a {
  display: inline-block;
  text-decoration: none;
  background-color: #5AC8FA; /* Matches the bright blue theme */
  color: #FFFFFF;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 1px;
  padding: 10px 16px;
  border-radius: 4px;
  text-align: center;
  min-width: 120px;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

/* Hover and Focus States for Better Accessibility */
.nav-container a:hover,
.nav-container a:focus { /* Added :focus state for keyboard accessibility */
  background-color: #34AADC; /* Deepens the blue on hover */
  outline: none;
}

.nav-container a:active {
  transform: scale(0.97);
}

/* Active State Highlighter for the Current Page */
.nav-container a.active-page {
  background-color: #007AFF; 
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.15);
}

/* --- TYPOGRAPHY & LAYOUT CONFIGURATION --- */
.main-content {  
  max-width: 750px; /* Limits paragraph width for optimal text readability */
  margin: 40px auto; /* Centers text column on screen */
}

h2 {
  font-size: 1.6rem;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

p {
  text-align: left;
  line-height: 1.7;
  margin-bottom: 1.5rem; /* Replaces messy double break tags */
}

/* Fixed Missing Quote Styles */
.quote-text {
  font-style: italic;
  text-align: left;
  line-height: 1.5;
  color: #555555;
}

/* --- RESPONSIVE MEDIA QUERIES --- */
@media screen and (max-width: 600px) {
  body {
    margin: 15px 20px; 
  }
  .main-content {
    margin: 25px auto;
  }
  .nav-container {
    display: grid; /* Switched to Grid for a flawless mobile layout columns */
    grid-template-columns: repeat(2, 1fr); 
    gap: 8px;
  }
  .nav-container a {
    font-size: 0.75rem;
    padding: 8px 10px;
    min-width: 100%; /* Let the grid handle the widths safely */
  }
}