/* --- General layout --- */
body {
  font-family: "Times New Roman", Times, serif;
  background-color: #fafafa;
  color: #222;
  margin: 0;
  padding: 0;
  line-height: 1.9;
}

/* --- Header --- */
header {
  text-align: center;
  padding: 20px;
  background: #EEE;
}

header h1 {
  font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
  font-size: 60px;
  color: red;
  transform: rotate(-3deg); /* Just tilt it permanently */
  text-shadow: 2px 2px 2px #999;
}

header .logo-link {
  text-decoration: none;
  color: inherit;
}

header .logo-link:hover {
  text-decoration: underline; /* opcjonalnie */
}

/* --- Main Content --- */
/* This is the new container for the two-pane layout */
.main-container {
  max-width: 1200px; /* Wider to accommodate two panes */
  margin: 3rem auto;
  background: white;
  padding: 0; /* Padding will be on the panes */
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-wrap: wrap; /* Allows panes to stack on small screens */
}

/* Left pane styling */
.left-pane {
  flex: 3; /* Takes up 3 parts of the space */
  min-width: 300px; /* Ensures it doesn't get too small */
  padding: 2rem;
  /* This prevents the pane from collapsing and letting text flow under the right pane */
  overflow: hidden; 
}

/* Right pane styling */
.right-pane {
  flex: 1; /* Takes up 1 part of the space */
  min-width: 250px;
  padding: 2rem;
  background-color: #fdfdfd;
  border-left: 1px solid #eee;
  border-radius: 0 12px 12px 0; /* Rounds the right corners */
}

.right-pane h2 {
  font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
  color: #333;
  margin-top: 0;
}

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

.story-list li {
  margin-bottom: 1rem;
}

.story-list a {
  text-decoration: none;
  font-family: 'Arial Narrow', Arial, sans-serif;
  font-size: 1.2rem;
  color: red;
  transition: all 0.2s;
}

.story-list a:hover {
  text-decoration: underline;
  padding-left: 5px;
}

/* --- New Left Pane Section Styles --- */

.intro-text {
  margin-bottom: 2rem;
}

.intro-image-section {
  margin-bottom: 2rem;
}

/* Style for the intro image */
.intro-image {
  width: 100%;
  max-width: 500px;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Style for the new scripture text */
.new-scripture {
  margin-bottom: 3rem; /* Extra space before posts */
  padding: 0 1rem;
}

.new-scripture p {
  font-style: italic;
  text-align: center;
  white-space: pre-line; /* Preserves line breaks */
  font-size: 1.1rem;
  color: #333;
}
/* --- End New Left Pane Styles --- */

.posts article {
  margin-bottom: 2rem;
}

.posts h2 {
  font-size: 1.6rem;
  margin-bottom: 0.2rem;
}

.posts .author {
  color: #555;
  margin-bottom: 0.8rem;
}


.posts p {
  text-align: justify;
}


/* This will make all <pre> text wrap correctly */
pre {
  white-space: pre-wrap;
  word-wrap: break-word;
  font-family: "Times New Roman", Times, serif; /* Match body font */
}
.justified {
  text-align: justify;
}


/* --- Footer --- */
footer {
  text-align: center;
  color: #666;
  font-size: 0.9rem;
  padding: 2rem 0;
  margin-top: 3rem;
  border-top: 1px solid #ddd;
}

/* --- Responsive Design --- */
@media (max-width: 800px) {
  .main-container {
    flex-direction: column; /* Stack panes vertically */
  }

  .right-pane {
    border-left: none; /* Remove side border */
    border-top: 1px solid #eee; /* Add top border */
    border-radius: 0 0 12px 12px; /* Round bottom corners */
  }
}