/* Blog Post Content Section Styles */
.post-container {
    padding: 40px 40px;
    max-width: 900px; /* Max width for content readability */
    margin: 0 auto; /* Center the post content */
    background-color: #ffffff; /* Slightly darker beige/khaki for post background */
    border: 0px solid #272727; /* Dark border */
    box-shadow: 0 0 0px rgba(152, 152, 152, 0.8); /* Stronger glow for the main content area */
    margin-bottom: 40px; /* Space below the post */
    text-align: center; /* Center all text in the container */
}

.post-container h1 {
    font-size: 2.8em; /* Large title for the post */
    color: #272727;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    line-height: 1.25;
    text-align: center; /* Center the title */
    width: 100%; /* Full width for proper centering */
}

.post-container h1::after {
    content: '';
    position: absolute;
    left: 50%; /* Center the underline */
    transform: translateX(-50%); /* Center the underline */
    bottom: -8px; /* Underline below the title */
    width: 100%;
    height: 2px;
    background-color: #272727;
}

.post-meta {
    font-size: 0.8em;
    color: #727272; /* Muted brown/green for meta info */
    margin-bottom: 30px;
    display: block;
    border-bottom: 1px dashed #727272; /* Dashed separator for meta */
    padding-bottom: 10px;
    text-align: center; /* Center the date */
}

.post-content {
    font-family: Arial, sans-serif; /* Readable font for body text */
    font-size: 1.1em;
    line-height: 1.7;
    color: #272727;
    text-align: left; /* Keep the content left-aligned for better readability */
    width: 100%;
    display: block;
}

.post-content h2, .post-content h3 {
    font-family: 'Press Start 2P', cursive; /* Keep pixelated for subheadings */
    color: #272727;
    margin-top: 35px;
    margin-bottom: 15px;
    position: relative;
}

.post-content ul, .post-content ol {
    margin-left: 20px;
    margin-bottom: 20px;
    list-style-type: square; /* Retro-style bullet */
    color: #272727;
}

.post-content ul li, .post-content ol li {
    margin-bottom: 8px;
}

.post-content a {
    color: #000000; /* Olive green for links */
    text-decoration: underline;
    transition: color 0.3s ease;
}

.post-content a:hover {
    color: #727272; /* Darker on hover */
}

.back-to-blog {
    display: inline-block;
    background-color: #9d9d9d; /* Olive green button */
    color: #000000; /* Light beige text */
    padding: 10px 20px;
    border: 1px solid #727272; /* Muted border */
    font-family: 'Press Start 2P', cursive; /* Pixelated font for button */
    font-size: 0.9em;
    text-decoration: none;
    margin-top: 40px;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.back-to-blog:hover {
    background-color: #727272; /* Darker olive/brown on hover */
    color: #ffffff;
    border-color: #272727;
}

.code {
    background-color: #23272e;
    color: #e0e0e0;
    font-family: 'Fira Mono', 'Consolas', 'Courier New', monospace;
    font-size: 0.98em;
    padding: 18px 20px;
    border-radius: 8px;
    margin: 28px 0;
    overflow-x: auto;
    box-shadow: 0 2px 8px rgba(30, 30, 30, 0.10);
    border: 1px solid #393939;
    line-height: 1.6;
    word-break: break-all;
}

.math {
    display: block;
    background: #f6f6f6;           /* Light background for contrast */
    color: #1a1a1a;                /* Dark text for readability */
    font-family: 'Cambria Math', 'STIX Math', 'Latin Modern Math', 'Times New Roman', serif;
    font-size: 1.25em;             /* Slightly larger for emphasis */
    padding: 16px 20px;
    margin: 28px 0;
    border-left: 4px solid #727272; /* Subtle accent bar */
    border-radius: 6px;
    overflow-x: auto;
    text-align: center;              /* Math is usually left-aligned */
    word-break: break-word;
    box-shadow: 0 2px 8px rgba(30, 30, 30, 0.07);
}

.math sup {
    font-size: 0.75em;
    vertical-align: super;
    margin-left: 1px;
}

.post-content table {
    display: table;
    margin: 32px auto;      /* Center the table */
    width: auto;            /* Only as wide as content */
    max-width: 100%;        /* Prevent overflow on small screens */
    border-collapse: collapse;
    background: #fafafa;
    color: #272727;
    font-size: 0.80em;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(30, 30, 30, 0.07);
    table-layout: auto;     /* Columns fit content */
}

.post-content th, .post-content td {
    padding: 14px 18px;
    border-bottom: 1px solid #e0e0e0;
    text-align: center;          /* Center cell content */
    white-space: normal; /* Allow wrapping */
}

.post-content th {
    background: #ededed;
    color: #272727;
    font-family: 'Press Start 2P', cursive;
    font-size: 1em;
    border-bottom: 2px solid #727272;
}

.post-content tr:last-child td {
    border-bottom: none;
}

.post-content tr:hover td {
    background: #f0f0f0;
}

.post-content tr.header th,
.post-content tr.header td {
    background: #d6d6d6;           /* More distinct background */
    color: #1a1a1a;                /* Darker text for contrast */
    font-weight: bold;
    border-bottom: 3px solid #727272; /* Thicker accent border */
    box-shadow: 0 2px 6px rgba(114, 114, 114, 0.10);
    letter-spacing: 0.5px;
}
