/*
 * filename:   /home/al/projects/TechBlog/static/styles.css
 * v6.0: Responsive stylesheet with a media query to handle smaller screens.
 * Implements a robust Flexbox two-column layout that becomes a one-column
 * layout on devices with a screen width of 768px or less.
 */
body {
    font-family: sans-serif;
    margin: 0;
    background-color: lightblue;
    color: navy;
    font-size: 20px;
}
.page-container {
    display: flex;
    min-height: 100vh;
}
.sidebar {
    flex: 0 0 320px;
    background-color: #add8e6;
    padding: 20px;
    border-right: 2px solid navy;
    display: flex;
    flex-direction: column;
}
.profile-section {
    text-align: center;
    padding-bottom: 20px;
    margin-bottom: 20px;
}
.profile-pic {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 3px solid navy;
    margin-bottom: 15px;
}
.banner-img {
    width: 100%;
    max-width: 250px;
    height: auto;
}
.sidebar-nav h3 {
    font-size: 1.2em;
    color: navy;
    border-bottom: 2px solid navy;
    padding-bottom: 5px;
}
.sidebar-nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0 0 20px 0;
}
.sidebar-nav a {
    text-decoration: underline;
    color: navy;
    display: block;
    padding: 8px 0;
}
.sidebar-nav a:hover {
    color: #00008b;
}
.sidebar-footer {
    margin-top: auto;
    font-size: 0.8em;
    text-align: center;
}
.main-content {
    flex-grow: 1;
    padding: 30px;
    background-color: #f0f8ff;
}
.article-summary h2 a, .full-article h1 {
    color: navy;
    text-decoration: none;
}
.article-meta {
    color: #000080;
    font-size: 0.9em;
    font-style: italic;
    margin-bottom: 20px;
}
.read-more {
    font-weight: bold;
    color: navy;
}

/* Media Query for smaller screens (e.g., tablets and phones) */
@media (max-width: 768px) {
    .page-container {
        flex-direction: column; /* Stacks items vertically */
    }
    .sidebar {
        flex: 1 1 auto; /* Allows sidebar to take up full width */
        border-right: none;
        border-bottom: 2px solid navy; /* Adds a bottom border for separation */
    }
    .main-content {
        padding: 15px; /* Adjusts padding for smaller screens */
    }
}
