* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background: #EAE9E5;
    color: #343434;
}

header {
    background: #fff;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #dddddd;
}

#site_logo {
    text-align: center;
}

#site_logo a {
    text-decoration: none;
    display: inline-block;
}

#site_logo img {
    max-height: 80px;
    margin-bottom: 0.5rem;
}

#site_logo h1 {
    font-size: 1.8rem;
    color: #343434;
    margin: 0;
}

#site_logo h2 {
    font-size: 1rem;
    color: #636363;
    font-weight: normal;
    margin: 0;
}

main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.post-card {
    background: white;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border: 1px solid #dddddd;
    transition: transform 0.2s, box-shadow 0.2s;
}

.post-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.12);
}

.post-card .post-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.post-card .thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-info {
    padding: 1rem;
}

.post-card h2 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #54798B;
}

.post-card:hover h2 {
    color: #3d5f72;
    text-decoration: underline;
}

.post-card time {
    font-size: 0.85rem;
    color: #666;
}

article h2 {
    font-size: 2rem;
    color: #54798B;
    margin-bottom: 0.5rem;
}

article time {
    display: block;
    color: #666;
    margin-bottom: 1.5rem;
}

article .content {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

article .content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 1rem 0;
    display: block;
}

/* WordPress alignment classes */
article .content .aligncenter {
    display: block;
    margin: 1.5rem auto;
}

article .content .alignleft {
    float: right; /* RTL: left becomes right */
    margin: 0.5rem 0 0.5rem 1.5rem;
    max-width: 50%;
}

article .content .alignright {
    float: left; /* RTL: right becomes left */
    margin: 0.5rem 1.5rem 0.5rem 0;
    max-width: 50%;
}

article .content .alignnone {
    display: block;
    margin: 1rem 0;
}

/* WordPress caption boxes */
article .content .wp-caption {
    max-width: 100%;
    margin: 1.5rem 0;
    padding: 0.5rem;
    background: #f9f9f9;
    border-radius: 4px;
}

article .content .wp-caption img {
    margin: 0;
}

article .content .wp-caption-text {
    font-size: 0.9rem;
    color: #666;
    text-align: center;
    margin-top: 0.5rem;
}

/* Clear floats */
article .content::after {
    content: "";
    display: table;
    clear: both;
}

article .content p {
    margin-bottom: 1rem;
}

article .content p:has(img) {
    text-align: center;
}

/* Links around images */
article .content a > img {
    transition: opacity 0.2s;
}

article .content a:hover > img {
    opacity: 0.9;
}

.back {
    margin-top: 2rem;
}

.back a {
    color: #54798B;
    text-decoration: none;
    font-weight: bold;
}

.back a:hover {
    color: #3d5f72;
    text-decoration: underline;
}

footer {
    text-align: center;
    padding: 2rem;
    color: #666;
}

@media (max-width: 600px) {
    #site_logo h1 {
        font-size: 1.4rem;
    }

    .posts-grid {
        grid-template-columns: 1fr;
    }
}
