/* ==============================
   Global Reset & Base Styles
============================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.7;
  color: #2c2c2c;
  background: #f9fafc; /* clean academic background */
}

/* ==============================
   Layout Containers
============================== */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 0;
}

header, nav, footer {
  background: #0d47a1; /* deep academic blue */
  color: #fff;
}

header {
  padding: 25px 0;
  text-align: center;
}

header h1 {
  font-size: 2.2rem;
  font-weight: 700;
}

nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 12px 0;
}

nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #ffeb3b; /* subtle highlight */
}

/* ==============================
   Blog Page Layout
============================== */
main {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
  margin: 30px 0;
}

article {
  background: #fff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

article h2 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: #0d47a1;
}

article p {
  margin-bottom: 15px;
  text-align: justify;
}

aside {
  background: #eef2f7;
  padding: 20px;
  border-radius: 10px;
  font-size: 0.95rem;
}

aside h3 {
  margin-bottom: 10px;
  color: #0d47a1;
}

/* ==============================
   Reusable Content Elements
============================== */
button, .btn {
  display: inline-block;
  background: #0d47a1;
  color: #fff;
  padding: 10px 18px;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

button:hover, .btn:hover {
  background: #1565c0;
}

blockquote {
  border-left: 5px solid #0d47a1;
  padding-left: 15px;
  margin: 20px 0;
  font-style: italic;
  color: #444;
  background: #f1f5fb;
}

/* ==============================
   Footer
============================== */
footer {
  text-align: center;
  padding: 20px 10px;
  font-size: 0.9rem;
  margin-top: 40px;
}

footer a {
  color: #ffeb3b;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* ==============================
   Responsive Design
============================== */
@media (max-width: 900px) {
  main {
    grid-template-columns: 1fr;
  }
  nav {
    flex-wrap: wrap;
  }
}
