@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

:root {
    --primary-color: #745ec2;
    --secondary-color: #ff6f91;
    --text-color: #333;
    --bg-color: #f9f9f9;
    --white: #ffffff;
    --gray: #f4f4f4;
    --dark-gray: #666;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-header {
    background-color: var(--primary-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    max-height: 50px;
}

.menu {
    display: flex;
    list-style-type: none;
}

.menu li {
    margin-left: 1rem;
}

.menu a {
    color: var(--white);
    text-decoration: none;
}

main {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 2rem 0;
}

.blog-article {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 2rem;
}

.article-header h1 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.article-meta {
    color: var(--dark-gray);
    margin-bottom: 1rem;
}

.article-meta span {
    margin-right: 1rem;
}

.article-hero-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.article-content h2 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin: 1.5rem 0 1rem;
}

.article-content p {
    margin-bottom: 1rem;
}

.article-footer {
    margin-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.article-tags .tag {
    background-color: var(--gray);
    color: var(--dark-gray);
    padding: 0.3rem 0.6rem;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-right: 0.5rem;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.article-share a {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-left: 0.5rem;
}

.blog-sidebar {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
}

.widget {
    margin-bottom: 2rem;
}

.widget h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.widget ul {
    list-style-type: none;
}

.widget ul li {
    margin-bottom: 0.5rem;
}

.widget a {
    color: var(--text-color);
    text-decoration: none;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
}

.newsletter-form input[type="email"] {
    padding: 0.5rem;
    margin-bottom: 0.5rem;
}

.btn {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.comments-section {
    margin-top: 2rem;
}

.comment-form {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    margin-top: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--gray);
    border-radius: 4px;
}

.site-footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 1rem 0;
    margin-top: 2rem;
}

.site-footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-links a {
    color: var(--white);
    font-size: 1.5rem;
    margin-left: 0.5rem;
}

@media (min-width: 768px) {
    main {
        flex-direction: row;
    }

    .blog-article {
        flex: 2;
        margin-right: 2rem;
    }

    .blog-sidebar {
        flex: 1;
    }

    .article-header h1 {
        font-size: 2.5rem;
    }
}