/* ===== Base Styles ===== */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f5f7fa;
  color: #333;
  margin: 0;
  padding: 0;
}

/* ===== Container (responsive width) ===== */
.container {
  max-width: 800px;     /* default for phones/smaller tablets */
  margin: 40px auto;
  background-color: #fff;
  padding: 24px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.06);
}

/* Wider on laptops */
@media (min-width: 1024px) {
  .container {
    max-width: 1100px;
    padding: 32px;
  }
}

/* Even wider on large desktops */
@media (min-width: 1440px) {
  .container {
    max-width: 1280px;
    padding: 40px;
  }
}

/* ===== Header ===== */
h1 {
  text-align: center;
  font-size: 2.4em;
  color: #2c3e50;
  margin-bottom: 10px;
}

/* ===== Navigation Links ===== */
.container p {
  text-align: center;
  font-size: 1.1em;
}

.container a {
  color: #2980b9;
  text-decoration: none;
  font-weight: bold;
}

.container a:hover {
  text-decoration: underline;
}

/* ===== Form Elements ===== */
input[type="text"],
textarea {
  width: 100%;
  padding: 12px;
  margin-top: 8px;
  margin-bottom: 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 16px;
  box-sizing: border-box;
}

/* ===== Buttons ===== */
button {
  background-color: #007bff;
  color: #fff;
  padding: 12px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
}

button:hover {
  background-color: #0056b3;
}

/* ===== Horizontal Rule ===== */
hr {
  margin: 24px 0;
  border: 0;
  height: 1px;
  background: #ddd;
}

/* ===== Post Card Style ===== */
.post {
  margin-bottom: 28px;
  padding: 22px;
  border: 1px solid #e9ecef;
  border-radius: 10px;
  background-color: #ffffff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.post h2 {
  margin-top: 0;
  color: #34495e;
}

.post small {
  display: block;
  margin-top: 10px;
  color: #777;
}

/* Make posts breathe more on larger screens */
@media (min-width: 1024px) {
  .post {
    padding: 26px;
  }
}

/* ===== Reflection Section ===== */
.reflections {
  margin-top: 15px;
  padding: 15px;
  background-color: #f6f8fa;
  border-left: 4px solid #007bff;
  border-radius: 8px;
}

.reflections h4 {
  margin-top: 0;
  color: #2c3e50;
}

.reflections ul {
  list-style-type: none;
  padding-left: 0;
}

.reflections li {
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e5e7eb;
}

.reflections small {
  display: block;
  margin-top: 4px;
  color: #777;
}

/* ===== Italicized Reflections ===== */
.reflection,
.post.reflection,
article.reflection {
  font-style: italic;
  color: #555;
  border-left: 4px solid #ccc;
  padding-left: 12px;
  margin: 1.5em 0;
}

/* Reflection items inside the Reflections box */
.reflections li.reflection {
  font-style: italic;
  border-left: 0;     /* prevents double border */
  padding-left: 0;    /* aligns text with other list items */
  color: #555;
}
