/* Article Styles */
.article-content {
    padding: 40px 0;
}

.article-content .container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-gap: 40px;
}

@media (max-width: 992px) {
    .article-content .container {
        grid-template-columns: 1fr;
    }
}

.post {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.post-header {
    padding: 30px;
    border-bottom: 1px solid var(--border-color);
}

.breadcrumbs {
    font-size: 0.9rem;
    margin-bottom: 20px;
    color: #777;
}

.breadcrumbs a {
    color: #777;
    transition: var(--transition);
}

.breadcrumbs a:hover {
    color: var(--primary-color);
}

.post-header h1 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    font-family: 'Poppins', sans-serif;
    color: var(--dark-color);
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 20px;
}

.post-meta span {
    display: flex;
    align-items: center;
    margin-right: 20px;
    margin-bottom: 10px;
}

.post-meta i {
    margin-right: 5px;
}

.post-featured-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    overflow: hidden;
}

.post-featured-img img {
    width: 100%;
    height: auto;
}

.post-body {
    padding: 30px;
}

.table-of-contents {
    background-color: var(--light-gray);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.table-of-contents h2 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-family: 'Poppins', sans-serif;
}

.table-of-contents ul {
    list-style-type: none;
}

.table-of-contents li {
    margin-bottom: 8px;
}

.table-of-contents a {
    color: var(--dark-color);
    transition: var(--transition);
}

.table-of-contents a:hover {
    color: var(--primary-color);
}

.post-body h2 {
    font-size: 1.8rem;
    margin: 40px 0 20px;
    font-family: 'Poppins', sans-serif;
    color: var(--dark-color);
}

.post-body h3 {
    font-size: 1.4rem;
    margin: 30px 0 15px;
    font-family: 'Poppins', sans-serif;
    color: var(--dark-color);
}

.post-body p {
    margin-bottom: 20px;
    line-height: 1.7;
}

.post-body ul, .post-body ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.post-body li {
    margin-bottom: 10px;
}

.tip-box, .warning-box {
    padding: 20px;
    border-radius: 8px;
    margin: 30px 0;
}

.tip-box {
    background-color: rgba(46, 204, 113, 0.1);
    border-left: 4px solid var(--secondary-color);
}

.warning-box {
    background-color: rgba(231, 76, 60, 0.1);
    border-left: 4px solid var(--accent-color);
}

.tip-box h4, .warning-box h4 {
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-family: 'Poppins', sans-serif;
}

.tip-box i, .warning-box i {
    margin-right: 10px;
}

.tip-box i {
    color: var(--secondary-color);
}

.warning-box i {
    color: var(--accent-color);
}

.product-recommendation {
    background-color: var(--light-gray);
    padding: 20px;
    border-radius: 8px;
    margin: 30px 0;
}

.product-recommendation h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-family: 'Poppins', sans-serif;
    text-align: center;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 20px;
}

.product {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.product:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.product img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.product h5 {
    font-size: 1rem;
    margin: 15px 15px 10px;
    font-family: 'Poppins', sans-serif;
}

.product p {
    font-size: 0.9rem;
    margin: 0 15px 15px;
    color: #666;
}

.product .btn {
    margin: 0 15px 15px;
    font-size: 0.9rem;
    padding: 8px 15px;
    display: block;
    text-align: center;
}

.author-box {
    display: flex;
    align-items: center;
    background-color: var(--light-gray);
    padding: 20px;
    border-radius: 8px;
    margin: 40px 0;
}

.author-box img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-right: 20px;
}

.author-info h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    font-family: 'Poppins', sans-serif;
}

.author-info p {
    font-size: 0.9rem;
    margin-bottom: 0;
    color: #666;
}

.share-post {
    margin: 30px 0;
}

.share-post h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-family: 'Poppins', sans-serif;
}

.social-share {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.social-share a {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    border-radius: 4px;
    color: white;
    font-size: 0.9rem;
    transition: var(--transition);
}

.social-share a:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.social-share i {
    margin-right: 8px;
}

.social-share .facebook {
    background-color: #3b5998;
}

.social-share .twitter {
    background-color: #1da1f2;
}

.social-share .whatsapp {
    background-color: #25d366;
}

.social-share .pinterest {
    background-color: #bd081c;
}

.related-posts {
    margin: 40px 0;
}

.related-posts h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-family: 'Poppins', sans-serif;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    grid-gap: 20px;
}

.related-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.related-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.related-card h4 {
    font-size: 0.9rem;
    margin: 10px;
    font-family: 'Poppins', sans-serif;
}

.comments-section {
    margin-top: 40px;
}

.comments-section h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-family: 'Poppins', sans-serif;
}

.comment-form {
    background-color: var(--light-gray);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.comment-form h4 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    font-family: 'Poppins', sans-serif;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.comments-list {
    margin-top: 30px;
}

.comment {
    display: flex;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.comment-avatar {
    margin-right: 15px;
}

.comment-avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.comment-content {
    flex: 1;
}

.comment-content h5 {
    font-size: 1rem;
    margin-bottom: 5px;
    font-family: 'Poppins', sans-serif;
}

.comment-date {
    font-size: 0.8rem;
    color: #777;
    font-weight: normal;
}

.comment-content p {
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.reply-link {
    font-size: 0.8rem;
    font-weight: 500;
}

/* Sidebar Styles */
.sidebar {
    align-self: start;
    position: sticky;
    top: 100px;
}

.widget {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 20px;
    margin-bottom: 30px;
}

.widget h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-family: 'Poppins', sans-serif;
    position: relative;
}

.widget h3:after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background-color: var(--primary-color);
    margin-top: 8px;
}

.popular-posts ul {
    display: grid;
    grid-gap: 15px;
}

.popular-posts li {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

.popular-posts li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.popular-posts a {
    display: flex;
    align-items: center;
    color: var(--text-color);
}

.popular-posts img {
    width: 70px;
    height: 70px;
    border-radius: 4px;
    margin-right: 15px;
    object-fit: cover;
}

.popular-posts h4 {
    font-size: 0.9rem;
    margin-bottom: 5px;
    font-family: 'Poppins', sans-serif;
    transition: var(--transition);
}

.popular-posts span {
    font-size: 0.8rem;
    color: #777;
}

.popular-posts a:hover h4 {
    color: var(--primary-color);
}

.widget.categories ul {
    display: grid;
    grid-gap: 10px;
}

.widget.categories a {
    display: flex;
    justify-content: space-between;
    color: var(--text-color);
    transition: var(--transition);
}

.widget.categories a:hover {
    color: var(--primary-color);
}

.widget.newsletter p {
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.widget.newsletter form {
    display: flex;
    flex-direction: column;
}

.widget.newsletter input {
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    margin-bottom: 10px;
}

.widget.advertisement .ad-space {
    width: 100%;
    height: 250px;
    background-color: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    overflow: hidden;
}

.widget.advertisement img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tags-cloud a {
    display: inline-block;
    padding: 5px 10px;
    background-color: var(--light-gray);
    border-radius: 4px;
    font-size: 0.8rem;
    color: var(--text-color);
    transition: var(--transition);
}

.tags-cloud a:hover {
    background-color: var(--primary-color);
    color: white;
}

@media (max-width: 768px) {
    .post-header {
        padding: 20px;
    }
    
    .post-header h1 {
        font-size: 1.8rem;
    }
    
    .post-body {
        padding: 20px;
    }
    
    .post-body h2 {
        font-size: 1.5rem;
    }
    
    .post-body h3 {
        font-size: 1.2rem;
    }
    
    .author-box {
        flex-direction: column;
        text-align: center;
    }
    
    .author-box img {
        margin: 0 auto 15px;
    }
    
    .social-share {
        flex-direction: column;
    }
    
    .social-share a {
        width: 100%;
        justify-content: center;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .comment {
        flex-direction: column;
    }
    
    .comment-avatar {
        margin-bottom: 10px;
    }
}
