/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #f5f0e8;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: #8b6914;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Header Styles */
header {
    background-color: #fff;
    margin-bottom: 30px;
}

.header-background {
    background: url('../images/header-bg.jpg') center center;
    background-size: cover;
    padding: 80px 0;
    text-align: center;
    position: relative;
}

.header-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(139, 105, 20, 0.3);
}

.header-background .container {
    position: relative;
    z-index: 1;
}

.site-title {
    font-family: 'Brush Script MT', cursive;
    font-size: 60px;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 10px;
    font-weight: normal;
}

.site-tagline {
    font-size: 18px;
    color: #fff;
    font-style: italic;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Navigation */
.main-nav {
    background-color: #8b6914;
    border-top: 3px solid #6b5010;
}

.main-nav ul {
    list-style: none;
    display: flex;
    justify-content: flex-start;
}

.main-nav li {
    margin: 0;
}

.main-nav a {
    display: block;
    padding: 15px 25px;
    color: #fff;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background-color 0.3s;
}

.main-nav a:hover,
.main-nav a.active {
    background-color: #6b5010;
    text-decoration: none;
}

/* Main Content Layout */
.main-content {
    display: flex;
    flex-direction: row;
    gap: 30px;
    margin-bottom: 50px;
}

.content-wrapper {
    display: flex;
    gap: 40px;
}

.articles {
    flex: 1;
    max-width: 750px;
}

.sidebar {
    width: 300px;
    flex-shrink: 0;
}

/* Article/Post Styles */
.post {
    background-color: #fff;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid #ddd;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.post-title {
    font-size: 24px;
    color: #2c2c2c;
    margin-bottom: 10px;
    line-height: 1.3;
    font-weight: 600;
}

.post-meta {
    font-size: 13px;
    color: #888;
    margin-bottom: 20px;
    font-style: italic;
}

.post-meta .date {
    margin-right: 15px;
}

.post-content {
    margin-bottom: 20px;
}

.post-content p {
    margin-bottom: 15px;
    text-align: justify;
}

.read-more {
    display: inline-block;
    color: #8b6914;
    font-weight: bold;
    font-size: 14px;
}

.read-more:hover {
    color: #6b5010;
}

/* Sidebar Widgets */
.widget {
    background-color: #fff;
    padding: 20px;
    margin-bottom: 25px;
    border: 1px solid #ddd;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.widget h3 {
    font-size: 16px;
    color: #2c2c2c;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #8b6914;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Search Widget */
.search-form {
    display: flex;
}

.search-form input[type="text"] {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    font-size: 14px;
}

.search-form button {
    padding: 8px 15px;
    background-color: #8b6914;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.search-form button:hover {
    background-color: #6b5010;
}

/* Calendar Widget */
.calendar {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.calendar th {
    padding: 8px 4px;
    background-color: #f5f0e8;
    color: #666;
    font-weight: normal;
    text-align: center;
}

.calendar td {
    padding: 8px 4px;
    text-align: center;
    border: 1px solid #f0f0f0;
}

.calendar td:hover {
    background-color: #f5f0e8;
    cursor: pointer;
}

.calendar .today {
    background-color: #8b6914;
    color: #fff;
    font-weight: bold;
}

/* Recent Posts Widget */
.recent-posts-widget ul,
.categories-widget ul {
    list-style: none;
}

.recent-posts-widget li,
.categories-widget li {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.recent-posts-widget li:last-child,
.categories-widget li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.recent-posts-widget a,
.categories-widget a {
    font-size: 14px;
    color: #555;
    display: block;
    transition: color 0.3s;
}

.recent-posts-widget a:hover,
.categories-widget a:hover {
    color: #8b6914;
    text-decoration: none;
}

/* Footer */
footer {
    background-color: #2c2c2c;
    color: #ccc;
    padding: 30px 0;
    text-align: center;
    font-size: 14px;
}

footer p {
    margin: 5px 0;
}

/* Responsive Design */
@media (max-width: 968px) {
    .content-wrapper {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
    }
    
    .articles {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .site-title {
        font-size: 40px;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
    }
    
    .main-nav a {
        padding: 12px 15px;
        font-size: 13px;
    }
    
    .post {
        padding: 20px;
    }
    
    .post-title {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .site-title {
        font-size: 32px;
    }
    
    .main-nav ul {
        flex-direction: column;
    }
    
    .main-nav a {
        border-bottom: 1px solid #6b5010;
    }
}
