/* Reset and base styles */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  height: 100%;
  background: #f5f5f5;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Crimson Text", Georgia, serif;
  font-size: 18px;
  line-height: 1.6;
  color: #333;
  background: #fff;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

/* Main content area grows to push footer down */
.generic-wrapper {
  flex: 1 0 auto;
  background: #fff;
}

a {
  color: var(--primary-color);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

/* Header styles */
.header-global {
  background: var(--primary-color);
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.header-logo img,
.header-logo svg {
  height: 50px;
}

.header-logo-mobile {
  display: none;
}

/* Navigation */
.header-nav-container {
  background: #f5f5f5;
  padding: 10px 20px;
  border-bottom: 1px solid #ddd;
}

/* make the ad fill the space */
#advertising-container {
  max-width: 250px;
  width: 100%;
  height: 250px; /* Adjust height as needed */
  background-color: #f0f0f0; /* Placeholder background */
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-bottom: 20px;
}

#advertising-container img {
  width: 250px;
  height: auto;
}

.main-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
}

.main-menu li a {
  font-family: "Roboto Slab", sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--primary-color);
  padding: 5px 0;
}

.main-menu li a:hover {
  color: var(--primary-color-light);;
  text-decoration: none;
}

/* Main content wrapper */
.generic-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.generic-container {
  margin-bottom: 0;
}

/* Article header */
.single-title {
  margin-bottom: 15px;
}

.category-label {
  margin-top: 20px;
  margin-left: 10px;
  text-transform: uppercase;
  font-family: "Crimson Text", serif;
  font-weight: 500;
  font-style: italic;
  color: var(--primary-color);
}

.single-title h1 {
  font-family: "Roboto Slab", sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 10px 0 0 0;
  color: var(--primary-color);
}

/* Article meta */
.single-meta {
  display: flex;
  gap: 20px;
  font-family: "Roboto Slab", sans-serif;
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.single-meta .author a {
  color: var(--primary-color);
  font-weight: 500;
}

/* Flex layout */
.generic-flex-container {
  display: flex;
  gap: 40px;
}

.flex-main {
  flex: 1;
  min-width: 0;
}

.flex-sidebar {
  width: 300px;
  flex-shrink: 0;
}

/* Article content */
.single-content {
  font-size: 1.1rem;
  line-height: 1.8;
}

.single-content p {
  margin: 0 0 1.5em 0;
}

.single-content figure {
  margin: 0 0 1.5em 0;
}

.single-content figcaption {
  font-size: 0.9rem;
  color: #666;
  font-style: italic;
  margin-top: 8px;
}

.single-content img {
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
  max-height: 450px;
  height: auto;
  border-radius: 4px;
}

.single-content blockquote {
  margin: 1.5em 0;
  padding: 1em 1.5em;
  border-left: 4px solid var(--primary-color);
  background: #f9f9f9;
  font-style: italic;
}

.single-content blockquote cite {
  display: block;
  margin-top: 0.5em;
  font-size: 0.9em;
  color: #666;
  font-style: normal;
}

.single-content h2 {
  font-family: "Roboto Slab", sans-serif;
  font-size: 1.6rem;
  margin: 1.5em 0 0.75em;
  color: var(--primary-color);
}

.single-content ul,
.single-content ol {
  margin: 0 0 1.5em 0;
  padding-left: 1.5em;
}

.single-content li {
  margin-bottom: 0.5em;
}

.single-content a {
  color: #0d4c90;
  text-decoration: underline;
}

/* Sidebar */
.sidebar-item {
  margin-bottom: 30px;
  padding: 20px;
  background: #f9f9f9;
  border-radius: 4px;
}

.sidebar-placeholder {
  background: #e0e0e0;
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-family: "Roboto Slab", sans-serif;
  border-radius: 4px;
}

/* Print styles */
.print-logo {
  display: none;
}
