/* Reset and basic styling */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #e3e8ee;
    /* Soft, calm blue-gray background */
    transition: background-color 0.3s, color 0.3s;
}

/* Parallax header styling */
.header {
    position: relative;
    height: 400px;
    background: linear-gradient(135deg, rgba(60, 120, 200, 0.6), rgba(20, 20, 50, 0.7)),
    url("{{ baseUrl }}{{ headerImage }}") center/cover;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    color: #ffffff;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s;
}

.header h1 {
    font-size: 2.2em;
    margin: 20px 0;
    text-align: center;
}

.back-button {
    position: absolute;
    top: 10px;
    left: 20px;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
}

/* Main content styling */
main {
    flex: 1;
    padding: 40px 20px;
    max-width: 700px;
    margin: auto;
    line-height: 1.7;
    font-size: 1.1em;
    color: #333;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s, color 0.3s;
}

p {
    margin-bottom: 1.5em;
}

.blog-post ul {
    padding-left: 20px; /* Adjusts indentation */
    margin-left: 20px;  /* Ensures spacing is uniform */
    margin-bottom: 10px;
}

/* Link styling */
a {
    color: #3c78c8;
    /* Subtle blue for links */
    text-decoration: underline;
    transition: color 0.3s;
}

/* Footer styling */
footer {
    background-color: #e3e8ee;
    color: #666;
    text-align: center;
    padding: 20px 0;
    font-size: 0.9em;
    border-top: 1px solid #ddd;
}

/* Dark theme styles */
.dark-theme {
    background-color: #2a2a2a;
    color: #d0d0d0;
}

.dark-theme main {
    background-color: #3b3b3b;
    color: #d0d0d0;
}

.dark-theme a {
    color: #9dbbf8;
    /* Light blue for dark mode links */
}

.image-row {
    display: flex;
    justify-content: center; /* Centers images horizontally */
    gap: 20px; /* Adjust spacing between images */
    flex-wrap: wrap; /* Allows wrapping on smaller screens */
    margin: 20px 0; /* Add some spacing around the row */
}

.image-container {
    flex: 1; /* Allows flexibility */
    max-width: 45%; /* Ensures images don’t exceed half the container width */
    text-align: center; /* Centers content within the container */
}
  
  .preview-image {
    max-width: 100%;
    height: auto;
    display: block; /* Ensures the image stays within the container */
    margin: 0 auto; /* Center the image horizontally */
  }
  
  .image-caption {
    margin-top: 8px; /* Add space between the image and caption */
    font-size: 14px;
    color: #555; /* Adjust color for better readability */
  }
  
  .preview-image:hover {
    transform: scale(1.05); /* Slight zoom effect on hover */
  }