/* Blog Container - Adjusted for wider layout */
.blog-container {
    width: 100%; /* Full width by default */
    max-width: 900px; /* Slightly adjusted for a comfortable reading width for entries */
    margin: 20px auto 40px; /* Adjusted top margin, added more bottom margin */
    padding: 20px; /* Reduced padding if entries have their own */
    background: transparent; /* Make container transparent if entries have their own background */
    border-radius: 8px;
    box-sizing: border-box; /* Ensures padding is included in width calculation */
    /* box-shadow: 0 0 10px rgba(0, 0, 0, 0.05); */ /* Shadow might be better on individual entries */
}

/* Blog Title */
.blog-container h1 {
    text-align: center;
    font-size: 2.5em; /* Slightly larger */
    font-weight: 600; /* Bolder */
    margin-top: 0; /* Consistent top margin if padding handles it */
    margin-bottom: 40px; /* Increased spacing */
    color: #2c3e50; /* Darker, more professional blue/grey */
}

/* Individual Blog Entries Styling */
.entry {
    width: 100%;
    box-sizing: border-box;
    left: 0px; /* This was in your original CSS */
    background: #ffffff; /* White background for each entry card */
    padding: 25px 30px; /* Default padding for desktop and larger screens */
    margin-bottom: 25px; /* Space between entries */
    border-radius: 8px; /* Rounded corners for the card */
    border: 1px solid #e0e0e0; /* Softer border */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); /* More pronounced shadow for depth */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth transition for hover */
    cursor: default; /* Change cursor if the whole card is not clickable */
}

.entry:hover {
    transform: translateY(-5px); /* Slight lift on hover */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12); /* Enhanced shadow on hover */
    /* background-color: #f8f9fa; */ /* Removed, keep background white on hover for cleaner look */
}

.entry h2 { /* Entry Title */
    margin: 0 0 10px 0; /* Adjusted space below title */
    font-size: 1.75em; /* Larger title for emphasis */
    font-weight: 600;
    color: #34495e; /* Professional dark blue */
    line-height: 1.3;
}

.entry h2 a { /* If your title is a link */
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.entry h2 a:hover {
    color: var(--nasa-blue, #0a84ff); /* Use brand color from globalstyle.css if defined */
}

.entry .timestamp { /* Timestamp/Date */
    color: #7f8c8d; /* Muted grey for metadata */
    font-size: 0.85em;
    font-weight: 400;
    margin-bottom: 15px; /* Space below timestamp */
    display: block; /* Ensure it takes its own line */
}

.entry .summary { /* Summary/Snippet Text */
    color: #555;
    font-size: 1em;
    line-height: 1.7;
    margin-bottom: 20px;
    word-wrap: break-word; /* Helps prevent layout breaks from long words */
}

.entry .read-more-link { /* "Read More" Link */
    display: inline-block;
    font-size: 0.95em;
    font-weight: 600;
    color: var(--nasa-blue, #0a84ff); /* Use brand color */
    text-decoration: none;
    padding: 8px 15px;
    border: 1px solid var(--nasa-blue, #0a84ff);
    border-radius: 20px; /* Pill shape */
    transition: background-color 0.3s ease, color 0.3s ease;
}

.entry .read-more-link:hover {
    background-color: var(--nasa-blue, #0a84ff);
    color: #ffffff;
}


/* Pagination */
.pagination {
    text-align: center; /* Suggestion: Center pagination */
    margin-top: 30px;   /* Suggestion: Space above pagination */
    /* If you have more specific styles for pagination, they would go here or replace these suggestions */
}

.pagination button {
    padding: 8px 16px; /* Suggestion: Base padding */
    margin: 0 5px;     /* Suggestion: Spacing between buttons */
    font-size: 0.9em;  /* Suggestion: Base font size */
    color: #333; /* Example text color */
    background-color: #f0f0f0; /* Example background color */
    border: 1px solid #ccc; /* Example border */
    border-radius: 4px; /* Example border radius */
    cursor: pointer;
    transition: background-color 0.2s ease;
    /* If you have more specific styles for pagination buttons, they would go here */
}

.pagination button:hover {
    background-color: #e0e0e0; /* Example hover background color */
    /* Your specific hover styles */
}

.pagination button:disabled {
    cursor: not-allowed; /* Suggestion */
    opacity: 0.6;        /* Suggestion */
    background-color: #f9f9f9; /* Example disabled background */
    color: #aaa; /* Example disabled text color */
    border-color: #ddd; /* Example disabled border color */
    /* Your specific disabled styles */
}

/* Floating button for creating posts */
.floating-button {
    position: fixed;    /* Common styling for FAB */
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: var(--nasa-blue, #0a84ff); /* Example background color */
    color: white; /* Example text/icon color */
    border-radius: 50%;
    font-size: 24px;
    line-height: 50px;  /* Vertically center text/icon */
    text-align: center; /* Horizontally center text/icon */
    box-shadow: 0 2px 10px rgba(0,0,0,0.2); /* Example shadow */
    border: none;
    cursor: pointer;
    z-index: 100; /* Ensure it's above other content */
    transition: background-color 0.2s ease, transform 0.2s ease;
    /* Your specific floating button styles */
}

.floating-button:hover {
    background-color: color-mix(in srgb, var(--nasa-blue, #0a84ff) 85%, black); /* Example darker hover */
    transform: scale(1.05); /* Example hover effect */
    /* Your specific hover styles */
}

/* --- Responsive Design Adjustments --- */

/* Medium screens (e.g., Tablets) - Your existing media query with refinements */
@media (max-width: 768px) {
    .blog-container {
        padding: 15px; /* Adjust padding for the main container */
        margin: 20px 15px 30px; /* Adjust margins for better screen use */
        max-width: none; /* Allow it to use more width */
    }

    .blog-container h1 {
        font-size: 2em; /* Slightly smaller blog title */
        margin-bottom: 30px;
    }

    .entry {
        padding: 20px; /* Adjust padding for entries on tablets */
    }

    .entry h2 {
        font-size: 1.5em; /* Smaller entry titles */
    }

    .entry .summary {
        font-size: 0.95em; /* Slightly smaller summary text */
        line-height: 1.65; /* Adjusted line height for readability */
    }

    .entry .read-more-link {
        font-size: 0.9em;
        padding: 7px 14px; /* Slightly adjusted padding */
    }

    .pagination button {
        padding: 7px 12px;
        font-size: 0.85em;
    }

    .floating-button {
        width: 48px;
        height: 48px;
        line-height: 48px;
        font-size: 22px;
        bottom: 18px;
        right: 18px;
    }
}

/* Smaller screens (e.g., Mobile phones) - Additional media query for finer control */
@media (max-width: 480px) {
    .blog-container {
        padding: 10px; /* Further reduce padding */
        margin: 15px 10px 25px; /* Further adjust margins */
    }

    .blog-container h1 {
        font-size: 1.75em; /* Even smaller blog title */
        margin-bottom: 25px;
    }

    .entry {
        padding: 15px; /* Smaller padding for entry cards */
        margin-bottom: 20px;
    }

    .entry h2 {
        font-size: 1.3em; /* Smaller entry titles */
        line-height: 1.35;
    }

    .entry .timestamp {
        font-size: 0.8em;
        margin-bottom: 10px;
    }

    .entry .summary {
        font-size: 0.9em;
        line-height: 1.6;
        margin-bottom: 15px;
    }

    .entry .read-more-link {
        font-size: 0.85em;
        padding: 10px 12px; /* Increased vertical padding for easier tapping */
        width: 100%; /* Make button full width for easier tapping */
        box-sizing: border-box;
        text-align: center;
    }

    .pagination button {
        padding: 6px 10px;
        font-size: 0.8em; /* Smaller pagination buttons */
        margin: 0 3px;
    }

    .floating-button {
        width: 45px;
        height: 45px;
        line-height: 45px;
        font-size: 20px;
        bottom: 15px;
        right: 15px;
    }
}
