/* Base Reset and Typography */
body, h1, h2, h3, p, ul, li, a {
  margin: 0; 
  padding: 0; 
  list-style: none; 
  color: #333333;
  font-weight: normal;
}

body {
  font-family: 'Merriweather', serif, Georgia, serif, Arial, sans-serif;
  background: url('./images/background.jpg') no-repeat center center fixed;
  background-size: cover;
  background-attachment: fixed;
  color: #333333;
  font-size: 16px;
  line-height: 1.75;
  padding: 2rem 1rem;
}

/* Overlay container for content */
.container {
  max-width: 1140px;
  margin: 3rem auto;
  display: flex;
  gap: 2rem;
  padding: 2rem 3rem;
  background-color: rgba(255, 255, 255, 0.9); /* white with 90% opacity */
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

/* Header */
header {
  max-width: 1140px;
  margin: 0 auto 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 3px solid #FFB500;
  padding-bottom: 0.5rem;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  border-radius: 8px;
}

header img {
  height: 50px;
}

header h1 {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #0B2341;
}

/* Sidebar */
.sidebar {
  flex: 0 0 180px;
  background: white;
  border-radius: 8px;
  padding: 2rem 1.5rem;
  box-shadow: 0 0 12px rgba(0,0,0,0.03);
  border: 1px solid #ddd;
  height: fit-content;
}

.sidebar h2 {
  font-weight: 600;
  margin-bottom: 1.5rem;
  font-family: 'Open Sans', Arial, sans-serif;
  color: #0B2341;
}

.topic-list li + li {
  margin-top: 1rem;
}

.topic-list a {
  color: #0B2341;
  font-weight: 600;
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  transition: background-color 0.3s ease, color 0.3s ease;
  font-family: 'Open Sans', Arial, sans-serif;
}

.topic-list a:hover,
.topic-list a:focus {
  background-color: #FFB500;
  color: white;
  outline: none;
  box-shadow: 0 0 8px #FFB500;
}

.topic-list a:focus-visible {
  outline: 3px solid #FFB500;
  outline-offset: 3px;
}

/* Main content */
.main-content {
  flex: 1;
  background: white;
  padding: 3rem;
  border-radius: 8px;
  box-shadow: 0 0 12px rgba(0,0,0,0.05);
}

.main-content h2 {
  border-bottom: 3px solid #FFB500;
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
  color: #0B2341;
  font-family: 'Open Sans', Arial, sans-serif;
}

.main-content p {
  margin-bottom: 1.5rem;
  max-width: 900px;
  font-size: 1rem;
  color: #444444;
  font-family: 'Merriweather', serif;
}

/* Links */
a {
  color: #1a73e8;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  font-weight: 500;
  transition: border-color 0.3s ease;
}

a:hover, a:focus {
  border-bottom-color: #1a73e8;
  outline-offset: 3px;
  outline-color: #1a73e8;
  outline-style: solid;
}

/* Highlights Section */
.highlights {
  background: #fffbea;
  padding: 1.5rem;
  margin-top: 2rem;
  border-radius: 8px;
  border: 1px solid #FFB500;
  max-width: 700px;
}

.highlights h3 {
  font-weight: 600;
  margin-bottom: 1rem;
  font-family: 'Open Sans', Arial, sans-serif;
  color: #0B2341;
}

.highlights li + li {
  margin-top: 0.75rem;
}

/* Callout */
.callout {
  margin-top: 2rem;
  padding: 1rem 1.5rem;
  background: #fffbea;
  border-left: 5px solid #FFB500;
  font-style: italic;
  color: #555555;
  max-width: 700px;
  border-radius: 0 6px 6px 0;
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
    margin: 2rem auto;
    padding: 1rem 1.5rem;
  }
  
  .sidebar {
    flex: none;
    width: 100%;
    max-width: 100%;
    margin-bottom: 2rem;
  }

  .main-content {
    width: 100%;
    max-width: 100%;
    padding: 2rem;
  }
}

/* Misc */
p + p {
  border-top: 1px solid #eee;
  padding-top: 1rem;
  margin-top: 1rem;
}

footer {
  background: rgba(255, 255, 255, 0.9);
  max-width: 960px;
  margin: 2rem auto 1rem auto;
  padding: 1rem 1rem;
  text-align: center;
  font-size: 0.9rem;
  color: #555;
  border-top: none;
  font-style: italic;
  font-family: Arial, Helvetica, sans-serif;
  border-radius: 0 0 12px 12px; /* round bottom corners to match container */
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}