@import url('https://fonts.googleapis.com/css2?family=Noto+Serif:wght@400;700&display=swap');

body {
  font-family: "Open Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-variation-settings:
    "wdth" 100;
  margin: 0;
  padding: 0;
}

body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

/* ===== Standardized Text Sizes ===== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  margin-top: 0;
  text-align: center;
}

h2 { font-size: 1.6rem; margin-bottom: 20px; }
h3 { font-size: 1.3rem; margin-bottom: 12px; }
h4 { font-size: 1.15rem; margin-bottom: 10px; }
h5 { font-size: 1rem; margin-bottom: 8px; }

p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 12px;
}

/* ===== Navigation Contrast ===== */
.navbar {
  background-color: #051e3e !important;
}

.nav-link {
  color: #ffffff !important;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 0.6rem 1.4rem !important;
  letter-spacing: 0.4px;
}

.nav-link:hover,
.nav-link:focus {
  color: #ffe082 !important;
  text-decoration: underline;
}

/* ===== Site Title ===== */
.site-title {
  font-size: 2em;
  text-align: center;
  margin-top: 25px;
  margin-bottom: 15px;
}

.site-title a {
  text-decoration: none;
  color: inherit;
}

.site-title h1 {
  margin-bottom: 8px;
  font-size: 2rem;
}

.site-title h3 {
  margin-top: 0;
  margin-bottom: 0;
  font-size: 1.15rem;
  font-weight: 400;
  color: #444;
}

/* ===== Content Width ===== */
.blogs,
.about,
.not-found,
.formcontainer {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  padding: 25px 20px;
}

.posts-wrapper {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 25px 20px;
}

/* ===== Footer ===== */
footer {
  color: #0b021d;
  text-align: center;
  margin: 30px auto 20px;
  padding: 15px;
  font-size: 0.95rem;
}

/* ===== Posts Page ===== */
.posts-wrapper {
  padding-top: 10px;
}

.posts-wrapper h2 {
  text-align: center;
  text-decoration: underline;
  margin-bottom: 30px;
}

.posts-wrapper .list-group {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.posts-wrapper .list-group-item {
  padding: 20px;
  margin-bottom: 20px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fff;
}

.posts-wrapper .list-group-item:last-child {
  margin-bottom: 0;
}

.post-row {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  justify-content: center;
}

.post-image {
  flex: 0 0 300px;
  width: 300px;
  height: 300px;
  overflow: hidden;
  border-radius: 4px;
}

.post-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

.post-text {
  flex: 0 0 720px;
  max-width: 720px;
}

.post-text h4 {
  text-decoration: underline;
  font-style: italic;
  margin-top: 0;
  margin-bottom: 10px;
}

.post-text p {
  margin-bottom: 0;
}

/* ===== Comments Page ===== */
.blogs.content h2 {
  text-align: center;
  text-decoration: underline;
  margin-bottom: 30px;
}

.blogs.content p.snippet {
  margin-bottom: 12px;
}

.blogs.content hr {
  border: none;
  border-top: 1px solid #bbb;
  margin-top: 25px;
  margin-bottom: 25px;
}

/* ===== Pledge Page ===== */
.blogs.content h3 {
  margin-top: 30px;
  margin-bottom: 10px;
}

.blogs.content h3:first-child {
  margin-top: 10px;
}

.blogs.content p.snippet {
  margin-bottom: 20px;
}

/* ===== Home Page ===== */
.blogs h2 {
  text-decoration: underline;
}

.blogs ul {
  padding-left: 25px;
  margin-bottom: 25px;
}

.blogs ul li {
  margin-bottom: 10px;
}

.readpledge {
  display: flex;
  justify-content: center;
  padding: 15px;
  font-size: 1.2em;
  font-weight: 600;
  color: crimson;
  margin: 20px 0 30px;
}

/* ===== About Page ===== */
.about.content h2 {
  margin-bottom: 20px;
}

.about.content p {
  margin-bottom: 15px;
}

/* ===== 404 Page ===== */
.not-found.content {
  text-align: center;
  font-size: 1.3rem;
  padding-top: 60px;
  padding-bottom: 60px;
}

/* ===== Forms ===== */
.formcontainer {
  display: flex;
  flex-direction: column;
  margin: 20px auto;
}

.formcontainer label {
  font-weight: 600;
  margin-bottom: 6px;
  display: block;
}

.comtext {
  display: block;
  height: 200px;
  width: 100%;
  max-width: 720px;
  margin: 6px 0 15px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
}

.formcontainer input[type="text"] {
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  width: 100%;
  max-width: 300px;
  margin-bottom: 12px;
  font-family: inherit;
}

.formcontainer input[type="submit"] {
  padding: 10px 28px;
  background-color: #0d47a1;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  margin-top: 5px;
}

.formcontainer input[type="submit"]:hover {
  background-color: #08306b;
}

/* ===== Modal ===== */
.modal-header {
  padding: 15px 20px;
  font-weight: 700;
  font-size: 1.1rem;
  border-bottom: 1px solid #dee2e6;
}

.modal-body {
  padding: 20px;
}

.modal-footer {
  padding: 15px 20px;
}

/* ===== Responsive ===== */
@media (max-width: 1160px) {
  .post-row {
    flex-direction: column;
    align-items: center;
  }

  .post-image,
  .post-text {
    flex: 0 0 auto;
    width: 100%;
    max-width: 720px;
  }

  .post-image {
    height: auto;
    aspect-ratio: 1 / 1;
    max-width: 400px;
  }
}
