/* TOC Entry Container for all entries */
.toc-entries-wrapper {
    display: flex;
    flex-direction: column;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0; /* Removed padding */
    gap: 5px; /* Small gap between entries */
    align-items: flex-start; /* Align content to the left */
    width: 100%; /* Ensure full width */
}

/* Individual TOC Entry Styling */
.toc-entry-container {
    display: flex;
    align-items: flex-start;
    width: 100%;
    gap: 20px;
    margin-bottom: 3px; /* Small margin */
    border-bottom: 1px solid #eee;
    padding-bottom: 5px; /* Small padding */
    padding-top: 3px; /* Small padding */
    padding-left: 0; /* No left padding to ensure alignment */
    padding-right: 0; /* No right padding to ensure alignment */
    box-sizing: border-box; /* Ensure padding is included in width */
}

.toc-entry-container:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.toc-entry-content {
    flex: 1;
    min-width: 0; /* Prevents flex item from overflowing */
    text-align: left; /* Ensure text is left-aligned */
    align-self: flex-start; /* Align to the start */
}

.toc-entry-title {
    font-family: "Charter", Georgia, serif;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 3px 0; /* Small bottom margin */
    padding: 0;
    display: block;
    text-align: left;
}

.toc-entry-title a {
    color: #333;
    text-decoration: none;
    text-align: left;
}

.toc-entry-title a:hover {
    color: #111;
    text-decoration: underline;
}

.toc-entry-subtitle {
    font-family: "Charter", Georgia, serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.2;
    color: #333;
    margin: 0 0 2px 0; /* Small bottom margin */
    padding: 0;
    display: block;
    text-align: left;
}

.toc-entry-date {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 11px;
    color: #777;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
    padding: 0;
    display: block;
    text-align: left;
}

.toc-entry-image-container {
    flex: 0 0 auto;
    max-width: 200px; /* Further reduced from 300px */
    min-width: 120px; /* Further reduced from 180px */
}

.toc-entry-image {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .toc-entry-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .toc-entry-content {
        order: 1;
    }
    
    .toc-entry-image-container {
        order: 0;
        max-width: 100%;
    }
}