/* ============================= */
/* 1. Global Styles */
* {
  margin: 0;           /* Remove default margin */
  padding: 0;          /* Remove default padding */
  box-sizing: border-box; /* Include padding/border in width/height */
  font-family: Arial, sans-serif; /* Set default font */
}

/* ============================= */
/* 2. Body */
body {
  line-height: 1.6;    /* Spacing between lines */
  color: #333;         /* Default text color */
  background-color: #f9f9f9; /* Page background */
  padding: 20px;       /* Page padding */
}

/* ============================= */
/* 3. Header & Navigation */
header {
  background-color: #004080;
  color: white;
  padding: 20px;
  text-align: center;
}

header h1 {
  margin-bottom: 10px;
}

nav ul {
  list-style: none;    /* Remove bullets */
  display: flex;
  justify-content: center;
  gap: 20px;           /* Space between links */
}

nav a {
  color: white;
  text-decoration: none; /* Remove underline */
  font-weight: bold;
}

nav a:hover {
  text-decoration: underline; /* Hover effect */
}

/* ============================= */
/* 4. Main Content */
main {
  margin: 20px auto;
  max-width: 900px;    /* Limit width for readability */
}

/* Article & Section */
article {
  background-color: white;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

section {
  margin-top: 15px;
}

/* ============================= */
/* 5. Figure & Figcaption */
figure {
  margin: 20px 0;
  text-align: center;
}

figure img {
  max-width: 100%;     /* Responsive image */
  height: auto;
  border-radius: 5px;
}

figcaption {
  font-size: 0.9rem;
  color: #666;
  margin-top: 5px;
}

/* ============================= */
/* 6. Aside (Sidebar) */
aside {
  background-color: #e6f0ff;
  padding: 15px;
  border-left: 4px solid #004080;
  margin: 20px 0;
}

/* ============================= */
/* 7. Footer */
footer {
  background-color: #004080;
  color: white;
  text-align: center;
  padding: 15px;
  margin-top: 40px;
}

/* ============================= */
/* 8. Typography */
h1, h2, h3 {
  margin-bottom: 10px;
}

p {
  margin-bottom: 15px;
}

/* ============================= */
/* 9. Time element */
time {
  font-style: italic;
  color: #555;
}

/* ============================= */
/* 10. Utility Classes */
.text-center {
  text-align: center;
}

.mt-20 {
  margin-top: 20px;
}

.mb-20 {
  margin-bottom: 20px;
}
