/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

a {
    text-decoration: none;
    color: #0066cc;
    transition: color 0.3s;
}

a:hover {
    color: #004499;
}

img {
    max-width: 100%;
    height: auto;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.main-container {
    display: flex;
    gap: 30px;
    padding: 30px 0;
}

.main-content {
    flex: 1;
}

.sidebar {
    width: 300px;
}

/* Header */
.site-header {
    background: #2c3e50;
    color: #fff;
    padding: 20px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-branding .site-title {
    margin: 0;
    font-size: 28px;
}

.site-branding .site-title a {
    color: #fff;
}

.site-branding .site-description {
    margin: 5px 0 0;
    font-size: 14px;
    color: #ecf0f1;
}

.main-navigation ul {
    display: flex;
    list-style: none;
}

.main-navigation li {
    margin-left: 20px;
}

.main-navigation a {
    color: #ecf0f1;
    font-weight: 500;
}

.main-navigation a:hover {
    color: #fff;
}

.main-navigation .active a {
    color: #fff;
    border-bottom: 2px solid #fff;
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.post-card {
    background: #fff;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.post-image {
    height: 200px;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.post-card:hover .post-image img {
    transform: scale(1.05);
}

.post-content {
    padding: 20px;
}

.post-title {
    font-size: 20px;
    margin-bottom: 10px;
}

.post-title a {
    color: #2c3e50;
}

.post-title a:hover {
    color: #0066cc;
}

.post-meta {
    font-size: 14px;
    color: #7f8c8d;
    margin-bottom: 15px;
}

.post-meta span {
    margin-right: 10px;
}

.post-excerpt {
    margin-bottom: 15px;
    color: #555;
}

.read-more {
    display: inline-block;
    font-weight: bold;
    font-size: 14px;
}

/* Single Post */
.single-post {
    background: #fff;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.post-header {
    margin-bottom: 30px;
}

.post-header .post-title {
    font-size: 32px;
    margin-bottom: 10px;
}

.post-header .post-meta {
    font-size: 16px;
}

.post-featured-image {
    margin-bottom: 30px;
}

.post-featured-image img {
    border-radius: 5px;
}

.post-content {
    font-size: 18px;
    line-height: 1.8;
}

.post-content p {
    margin-bottom: 20px;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

.post-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

/* Categories */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.category-card {
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.category-title {
    font-size: 20px;
    margin-bottom: 10px;
}

.category-title a {
    color: #2c3e50;
}

.category-description {
    color: #555;
    margin-bottom: 10px;
}

.category-meta {
    font-size: 14px;
    color: #7f8c8d;
}

/* Sidebar */
.sidebar .widget {
    background: #fff;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.widget-title {
    font-size: 18px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.search-form {
    display: flex;
}

.search-form input {
    flex: 1;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
}

.search-form button {
    padding: 8px 15px;
    background: #2c3e50;
    color: #fff;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

.category-list,
.recent-posts {
    list-style: none;
}

.category-list li,
.recent-posts li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.category-list li:last-child,
.recent-posts li:last-child {
    border-bottom: none;
}

/* Footer */
.site-footer {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 40px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-widget h3 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 18px;
}

.footer-widget p {
    margin-bottom: 15px;
    font-size: 14px;
}

.footer-widget ul {
    list-style: none;
}

.footer-widget li {
    margin-bottom: 8px;
}

.footer-widget a {
    color: #bdc3c7;
}

.footer-widget a:hover {
    color: #fff;
}

.subscribe-form {
    display: flex;
}

.subscribe-form input {
    flex: 1;
    padding: 8px 10px;
    border: none;
    border-radius: 4px 0 0 4px;
}

.subscribe-form button {
    padding: 8px 15px;
    background: #3498db;
    color: #fff;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background: #2c3e50;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}

.btn:hover {
    background: #1a252f;
    color: #fff;
}

/* Section Titles */
.section-title {
    font-size: 28px;
    margin-bottom: 20px;
    color: #2c3e50;
    position: relative;
    padding-bottom: 10px;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: #3498db;
}

/* Responsive */
@media (max-width: 768px) {
    .main-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }

    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .main-navigation {
        margin-top: 15px;
    }

    .main-navigation ul {
        justify-content: center;
    }

    .main-navigation li {
        margin: 0 10px;
    }
}

/* Social Sharing */
.social-sharing {
    margin: 30px 0;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 5px;
}

.social-sharing h4 {
    margin-bottom: 15px;
    font-size: 18px;
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.share-btn {
    display: inline-block;
    padding: 8px 15px;
    border-radius: 4px;
    color: white;
    font-size: 14px;
    font-weight: bold;
    transition: opacity 0.3s;
}

.share-btn:hover {
    color: white;
    opacity: 0.9;
}

.facebook {
    background: #3b5998;
}

.twitter {
    background: #1da1f2;
}

.linkedin {
    background: #0077b5;
}

.pinterest {
    background: #bd081c;
}

.whatsapp {
    background: #25d366;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 30px;
}

.pagination .btn {
    padding: 8px 12px;
}

.pagination .btn.active {
    background: #3498db;
    cursor: default;
}