/* ==========================================================================
   1. Global Styles & CSS Reset
   ========================================================================== */

/* A simple reset for consistency across browsers */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  font-size: 16px;
  line-height: 1.6;
  color: #333333; /* Dark charcoal for text, easier on the eyes than pure black */
  background-color: #f8f9fa; /* A very light grey for the page background */
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
   2. Layout & Container
   ========================================================================== */

/* A main container to center the content and limit its width */
.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

/* Main content area styling */
main {
  flex-grow: 1; /* Ensures the footer stays at the bottom */
  background-color: #ffffff;
  padding: 2rem 2.5rem;
  margin: 2rem auto;
  width: 100%;
  max-width: 1100px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border-radius: 5px;
}

/* ==========================================================================
   3. Header & Navigation
   ========================================================================== */

header {
  background-color: #ffffff;
  padding: 1rem 0;
  border-bottom: 1px solid #e0e0e0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.header-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 0;
}

.logo img {
  height: 320px; /* Adjust as needed for your logo size */
  width: auto;
  vertical-align: middle;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 600;
  color: #004a7c; /* A deep, corporate blue */
  text-decoration: none;
  margin-left: 10px;
}

nav ul {
  list-style-type: none;
}

nav ul li {
  display: inline-block;
  margin-left: 25px;
}

nav a {
  text-decoration: none;
  color: #333333;
  font-weight: 500;
  padding-bottom: 5px;
  transition:
    color 0.2s ease-in-out,
    border-bottom 0.2s ease-in-out;
}

nav a:hover {
  color: #0078d4; /* A slightly brighter blue for hover */
  border-bottom: 2px solid #0078d4;
}

/* ==========================================================================
   4. Typography
   ========================================================================== */

h1,
h2,
h3,
h4 {
  color: #004a7c; /* Deep corporate blue for headings */
  margin-bottom: 1rem;
  line-height: 1.3;
}

h1 {
  font-size: 2.5rem;
  font-weight: 600;
  border-bottom: 1px solid #eeeeee;
  padding-bottom: 0.5rem;
}

h2 {
  font-size: 2rem;
  font-weight: 500;
}

h3 {
  font-size: 1.5rem;
  font-weight: 500;
}

p {
  margin-bottom: 1rem;
}

a {
  color: #0078d4; /* Standard link color */
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   5. Components (e.g., Buttons)
   ========================================================================== */

.button {
  display: inline-block;
  background-color: #0078d4;
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.2s ease-in-out;
}

.button:hover {
  background-color: #005a9e; /* Darken button on hover */
  text-decoration: none;
  color: #ffffff;
}

/* ==========================================================================
   6. Footer
   ========================================================================== */

footer {
  background-color: #343a40; /* Dark footer */
  color: #adb5bd; /* Light grey text for footer */
  padding: 2rem 0;
  text-align: center;
  font-size: 0.9rem;
}

footer p {
  margin: 0;
}

footer a {
  color: #ffffff;
  text-decoration: underline;
}

/* ==========================================================================
   7. Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.75rem;
  }
  main {
    padding: 1.5rem;
  }
  .header-content {
    flex-direction: column;
  }
  nav {
    margin-top: 1rem;
  }
  nav ul li {
    margin: 0 10px;
  }
}

/* ==========================================================================
   8. Blog Specific Styles
   ========================================================================== */

.post-list-title {
  margin-top: 2rem;
  border-top: 1px solid #eeeeee;
  padding-top: 2rem;
}

.post-list {
  list-style-type: none; /* Removes the default bullet points */
  padding-left: 0; /* Removes the default padding */
}

.post-list-item {
  margin-bottom: 0.75rem; /* A little more space */
  font-size: 1.1rem;
}

.post-list-item time {
  color: #6c757d; /* A muted grey for the date */
  font-size: 0.9rem;
}
