body { font-family: Arial, sans-serif; margin:0; padding:0; background:#f5f7fa; color:#333; display:flex; flex-direction:column; min-height:100vh; }
header { background:#0b3d91; color:white; padding:10px 20px; display:flex; align-items:center; justify-content:space-between; }
header h1 { margin:0; font-size:1.8em; }
nav a { color:white; text-decoration:none; margin-left:15px; font-weight:bold; }
nav a:hover { text-decoration:underline; }
.container { flex:1; max-width:1000px; margin:20px auto; padding:20px; background:#fff; border-radius:8px; box-shadow:0 0 10px rgba(0,0,0,0.1); }
.article-list { list-style:none; padding:0; margin:0; }
.article-list li { margin-bottom:20px; padding:15px 20px; border-bottom:1px solid #ddd; background:#f9f9f9; border-radius:6px; }
.article-list a { display:block; font-size:1.3em; font-weight:bold; color:#0b3d91; text-decoration:none; line-height:1.4em; max-height:2.8em; overflow:hidden; text-overflow:ellipsis; white-space:normal; }
.article-list a:hover { text-decoration:underline; }
.article-list span.date { display:block; font-size:0.9em; color:#666; margin-top:5px; }
.article-list p.summary { margin-top:5px; font-size:1em; color:#444; }
.pagination { text-align:center; margin-top:30px; }
.pagination a, .pagination strong { margin:0 5px; padding:5px 10px; text-decoration:none; border-radius:4px; }
.pagination a { background:#0b3d91; color:#fff; }
.pagination a:hover { background:#064181; }
.pagination strong { background:#ddd; color:#333; }
footer { text-align:center; margin-top:20px; padding:15px 0; background:#0b3d91; color:#fff; font-size:0.9em; }
#backToTop { position:fixed; bottom:40px; right:40px; background:#0b3d91; color:#fff; padding:10px 15px; border-radius:50%; cursor:pointer; font-size:18px; display:none; }
#backToTop:hover { background:#064181; }
@media(max-width:600px){ nav a { margin-left:10px; font-size:0.9em; } }
/* ============================
   Reset and Basic Layout
============================ */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.7;
    background-color: #f4f4f4;
    color: #333;
}

a {
    text-decoration: none;
    color: #0b3d91;
}

a:hover {
    text-decoration: underline;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
}

/* ============================
   Header & Navigation
============================ */
header {
    background: #0b3d91;
    color: #fff;
    padding: 15px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header h1 {
    font-size: 1.8em;
    margin: 0;
}

nav {
    margin-top: 10px;
}

nav a {
    margin-right: 15px;
    color: #fff;
    font-weight: bold;
}

/* ============================
   Article Styling
============================ */
article h2 {
    color: #0b3d91;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    font-size: 1.5em;
}

article h3 {
    color: #0b3d91;
    margin-top: 1em;
    margin-bottom: 0.5em;
    font-size: 1.3em;
}

p {
    margin-bottom: 1em;
}

ul,
ol {
    margin-bottom: 1em;
    padding-left: 20px;
}

li {
    margin-bottom: 0.5em;
}

/* ============================
   Table of Contents (TOC)
============================ */
.toc {
    background: #e8f0fe;
    padding: 15px;
    border-left: 5px solid #0b3d91;
    margin-bottom: 20px;
}

.toc h3 {
    margin-bottom: 10px;
}

.toc ul {
    list-style: none;
    padding-left: 0;
}

.toc ul li {
    margin-bottom: 8px;
}

.toc ul li a {
    display: block;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background 0.2s;
}

.toc ul li a:hover {
    background-color: #d0e1fd;
}

/* ============================
   Back to Top Button
============================ */
#backToTop {
    position: fixed;
    bottom: 40px;
    right: 40px;
    background: #0b3d91;
    color: #fff;
    padding: 10px 15px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: none;
}

#backToTop:hover {
    background: #064181;
}

/* ============================
   Footer Styling
============================ */
footer {
    text-align: center;
    margin-top: 2em;
    padding: 20px;
    font-size: 0.9em;
    color: #666;
}
.meta-info {
    font-size: 0.9em;
    color: #777;
    margin-top: 4px;
    margin-bottom: 12px;
}


