p,
.splendor-p {
  font-size: 1rem;
  margin-bottom: 1rem;
  line-height: 1.5;
  color: #222;
}

h1,
.splendor-h1,
h2,
.splendor-h2,
h3,
.splendor-h3 {
  margin: 0.5rem 0 0.5rem; /* Reduced top margin */
}
h4,
.splendor-h4 {
  margin: 1.2rem 0 0.5rem;
  font-weight: bold;
  line-height: 1.2; /* Reduced line height */
  color: #111; /* Darker color for headings */
}

h1,
.splendor-h1 {
  font-size: 3.2rem;
}

h2,
.splendor-h2 {
  font-size: 2.4rem;
}

h3,
.splendor-h3 {
  font-size: 2rem;
}

h4,
.splendor-h4 {
  font-size: 1.5rem;
}

h5,
.splendor-h5 {
  margin: 1rem 0 1rem;
  font-size: 1.2rem; /* Slightly larger than body text */
  font-weight: bold; /* Emphasize the subheading */
  color: #333; /* Slightly darker to make it stand out */
  line-height: 1; /* Adjust line-height for better spacing */
}

small,
.splendor-small {
  font-size: 0.875rem;
  color: #666;
}

img,
canvas,
iframe,
video,
svg,
select,
textarea {
  max-width: 100%;
  height: auto;
}

@import url('https://fonts.googleapis.com/css?family=Merriweather:300,400,700&display=swap');

html {
  font-size: 18px;
  max-width: 100%;
}

body {
  color: #222; /* Darkened body font color */
  font-family: 'Merriweather', Georgia, serif;
  background-color: #fefaf0;
  margin: 0;
  max-width: 100%;
}

p,
h1, h2, h3, h4, h5, h6,
ul, ol {
  max-width: 36rem;
}

ul {
  margin: 1rem 0;
  padding-left: 1.2rem;
  line-height: 1.5;
}

li {
  margin-bottom: 0.3rem;
  line-height: 1.5;
}

p {
  color: #222;
  height: auto;
  margin: 1rem 0;
  line-height: 1.5;
}

.container {
  margin: 0 auto;
  display: flex;
  align-items: start;
  max-width: 46rem;
  padding: 1.5rem;
}

.container img {
  margin-left: 2rem;
  max-width: 17rem;
  height: auto;
  border-radius: 6px;
}

.text-content {
  flex: 1;
  padding-right: 1.5rem;
}

a {
  color: #3f7bbf;
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  text-decoration: underline;
}

/* Navigation bar styles */
.nav-bar {
  background-color: #fefaf0;
  padding: 0.8rem 1.5rem;
  text-align: left;
  border-bottom: 1px solid #e0dbd0;
  max-width: 46rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.nav-title {
  font-size: 1.4rem;
  font-weight: bold;
  color: #111;
  margin-right: 2rem;
}

.nav-link {
  margin-right: 2rem;
  color: #3f7bbf;
  text-decoration: none;
  font-size: 1.2rem;
}

.nav-link:hover {
  text-decoration: underline;
}

.nav-active {
  color: #111;
  font-weight: bold;
}

/* Small screen optimization */
@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }
  h2 {
    font-size: 2rem;
  }
  .container {
    flex-direction: column;
    padding: 1rem;
  }
  .container img {
    margin-left: 0;
    max-width: 100%;
    margin-bottom: 1rem;
  }
  .text-content {
    padding-right: 0;
  }
  .nav-bar {
    flex-wrap: wrap;
    gap: 0.3rem 1rem;
  }
  .nav-title {
    margin-right: auto;
  }
  .nav-link {
    margin-right: 1rem;
    font-size: 1rem;
  }
}
