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

/* Body Styling */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f2f2f2;
  color: #333;
  padding: 20px;
}

/* Header */
header {
  text-align: center;
  margin-bottom: 40px;
}

header h1 {
  font-size: 2em;
}

.subtitle {
  color: #555;
  font-size: 1.1em;
  text-shadow: 1px 1px 2px #ccc;
}

/* Layout using Grid */
.grid-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
}

/* Article Sections */
article {
  background: #fff;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

section {
  margin-bottom: 30px;
}

section h2 {
  color: #2c3e50;
  margin-bottom: 10px;
}

pre {
  background: #f4f4f4;
  padding: 10px;
  border-left: 4px solid #3498db;
  overflow-x: auto;
  margin-top: 10px;
}

code {
  font-family: monospace;
  color: #c7254e;
}

/* Figure and Figcaption */
figure {
  margin: 20px 0;
  background: #fafafa;
  border: 1px solid #ddd;
  padding: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

figcaption {
  text-align: center;
  font-style: italic;
  color: #555;
  margin-top: 5px;
}

/* Sidebar */
aside {
  background: #e8f0fe;
  padding: 20px;
  border-radius: 8px;
  opacity: 0.95;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

aside h3 {
  margin-bottom: 10px;
}

aside ul {
  list-style: disc;
  padding-left: 20px;
}

/* Footer */
footer {
  text-align: center;
  margin-top: 40px;
  color: #888;
  font-size: 0.9em;
}
