/* ==== Base Setup ==== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  /*font-family: 'Segoe UI', sans-serif;*/
  font-family: 'Segoe UI', sans-serif;
  font-size: 16px;
  color: #333;
  background-color: #f7f7f7;
  line-height: 1.6;
}

html, body {
  margin: 0;
  padding: 0;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ==== Container ==== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: auto;
  padding: 0 16px;
}


/* ==== Main Content ==== */
main.content {
  background-color: #ffffff;
  padding: 32px 16px;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.05);
  margin-top: 20px;
  border-radius: 6px;
}

/* ==== Section Headings ==== */

.section-title {
  color: #000000;
  text-align: center;
  font-size: 32px;
  margin-bottom: 40px;
}
h1.section-title {
  font-size: 36px;
}

h2.section-title {
  font-size: 32px;
}

h3.section-title {
  font-size: 26px;
}

h4.section-title {
  font-size: 20px;
}

/* ==== Footer ==== */
.site-footer {
  background-color: #f0f0f0;
  color: #444;
  font-size: 14px;
  padding: 20px 0;
  text-align: center;
  margin-top: 60px;
  border-top: 1px solid #ddd;
}


/* ==== Responsive Adjustments ==== */

@media (max-width: 1024px) {
  .section-title {
    font-size: 28px;
  }

  main.content {
    padding: 24px 12px;
  }
}

@media (max-width: 768px) {
  .section-title {
    font-size: 24px;
  }

  h1.section-title {
    font-size: 28px;
  }

  h2.section-title {
    font-size: 24px;
  }

  h3.section-title {
    font-size: 20px;
  }

  h4.section-title {
    font-size: 18px;
  }

  main.content {
    padding: 16px 10px;
    margin-top: 12px;
  }

  .container {
    padding: 0 12px;
  }

  body {
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 14px;
  }

  .section-title {
    font-size: 20px;
  }

  main.content {
    padding: 12px 8px;
  }

  .container {
    padding: 0 8px;
  }
}

/* ==== Responsive Layout Fixes ==== */

/* Ensure text and links wrap */
ul, li, p, a {
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* Allow long URLs to wrap inside <a> */
a {
  display: inline-block;
  max-width: 100%;
  white-space: normal;
}

/* Make headings responsive */
@media (max-width: 768px) {
  h2, h3, h4 {
    font-size: 1.2em;
  }

  .container {
    padding: 0 10px;
  }

  main.content,
  .post {
    padding: 16px;
  }
}

/* Further reduce for small phones */
@media (max-width: 480px) {
  body {
    font-size: 14px;
  }

  .container {
    padding: 0 6px;
  }

  h2 {
    font-size: 1em;
  }

  ul, li {
    font-size: 14px;
  }
}


/* ==== Fix bullets going off-screen ==== */
ul {
  padding-left: 1.5rem;  /* Add left padding for bullets */
  margin-left: 0;        /* Prevent double indenting */
  list-style-position: outside;
}

li {
  margin-bottom: 0.5em;
}