/* ------------------------------
   Global Styling
--------------------------------*/
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
                 Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    background: #f7f7f9;
    margin: 0;
    padding: 0;
    color: #333;
    line-height: 1.6;
}

main, .container {
    max-width: 700px;
    margin: auto;
    padding: 20px;
}

/* ------------------------------
   Header + Navigation
--------------------------------*/
header {
    background: #fff;
    border-bottom: 1px solid #e1e1e1;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 18px;
}

header a:hover {
    color: #007bff;
}

/* Search bar inside header */
header form input[type="text"] {
    padding: 6px 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

header form input[type="text"]:focus {
    outline: none;
    border-color: #007bff;
}

/* ------------------------------
   Typography
--------------------------------*/
h1 {
    font-weight: 700;
    color: #222;
    margin-bottom: 10px;
}

small {
    color: #888;
    display: block;
    margin-bottom: 10px;
}

br {
    margin-bottom: 10px;
}

/* ------------------------------
   Post Content Box
--------------------------------*/
.post-content {
    background: #fff;
    padding: 25px;
    border-radius: 6px;
    border: 1px solid #e1e1e1;
    margin-top: 20px;
}

/* ------------------------------
   Post List (Homepage + Search)
--------------------------------*/
.post-list li {
    margin-bottom: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.post-list li:last-child {
    border-bottom: none;
}

/* ------------------------------
   Navigation Links (Prev/Next)
--------------------------------*/
.nav-prev-next {
    margin-top: 30px;
    display: flex;
    justify-content: space-between;
}

.nav-prev-next a {
    background: #007bff;
    color: white;
    padding: 10px 14px;
    border-radius: 5px;
    text-decoration: none;
}

.nav-prev-next a:hover {
    background: #0056b3;
}

/* ------------------------------
   Responsive Design
--------------------------------*/
@media (max-width: 600px) {
    header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    main, .container {
        padding: 15px;
    }
}

