/* Blog Post Styles */

/* Main Layout */
.blog-post {
    padding: 60px 0;
}

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

/* Post Header */
.post-header {
    margin-bottom: 30px;
}

.post-header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--dark-blue);
    line-height: 1.2;
}

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

.post-meta .category {
    color: var(--primary-color);
    font-weight: 600;
}

/* Featured Image */
.featured-image {
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Post Content */
.post-content {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #444;
}

.post-content p {
    margin-bottom: 1.5rem;
}

.post-content h2 {
    font-size: 1.8rem;
    margin: 2rem 0 1rem;
    color: var(--dark-blue);
}

.post-content h3 {
    font-size: 1.4rem;
    margin: 1.5rem 0 1rem;
    color: var(--dark-blue);
}

.post-content ul, .post-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.post-content li {
    margin-bottom: 0.5rem;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 1.5rem 0;
}

.post-content a {
    color: var(--primary-color);
    text-decoration: underline;
}

.post-content a:hover {
    color: var(--secondary-color);
}

/* Introduction paragraph styling */
.introduction {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 2rem;
    font-weight: 500;
}

/* Feature Cards for HP Smart App article */
.feature-card {
    background-color: var(--white);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-left: 4px solid var(--primary-color);
}

.feature-card h2 {
    display: flex;
    align-items: center;
    margin-top: 0;
}

.feature-card h2 i {
    color: var(--primary-color);
    margin-right: 10px;
    font-size: 1.5rem;
}

.feature-image {
    margin: 20px 0;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.feature-image img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0;
}

/* Step-by-step guides */
.step {
    margin-bottom: 25px;
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
}

.step h3 {
    color: var(--primary-color);
    margin-top: 0;
}

.step-image {
    margin: 15px 0;
    border: 1px solid #eee;
    border-radius: 6px;
    overflow: hidden;
}

/* Tip Cards for Ink Optimization article */
.tip-card {
    background-color: var(--white);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-top: 4px solid var(--secondary-color);
}

.tip-image {
    margin: 20px 0;
    text-align: center;
}

.tip-image img {
    max-width: 100%;
    border-radius: 6px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.tip-image .caption {
    font-size: 0.85rem;
    color: #777;
    text-align: center;
    margin-top: 8px;
}

/* How-to sections */
.how-to {
    background-color: #f0f8ff;
    padding: 15px 20px;
    border-radius: 6px;
    margin: 15px 0;
}

.how-to h4 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

/* Info boxes */
.info-box {
    background-color: #e8f4fd;
    border-left: 4px solid #3498db;
    padding: 15px 20px;
    border-radius: 4px;
    margin: 20px 0;
}

.info-box h3, .info-box h4 {
    display: flex;
    align-items: center;
    color: #3498db;
    margin-top: 0;
    margin-bottom: 10px;
}

.info-box i {
    margin-right: 8px;
}

/* Warning boxes */
.warning-box {
    background-color: #fff5e6;
    border-left: 4px solid #e67e22;
    padding: 15px 20px;
    border-radius: 4px;
    margin: 20px 0;
}

.warning-box h4 {
    display: flex;
    align-items: center;
    color: #e67e22;
    margin-top: 0;
    margin-bottom: 10px;
}

.warning-box i {
    margin-right: 8px;
}

/* Tip boxes */
.tip-box {
    background-color: #e8f8f5;
    border-left: 4px solid var(--secondary-color);
    padding: 15px 20px;
    border-radius: 4px;
    margin: 20px 0;
}

.tip-box h4 {
    display: flex;
    align-items: center;
    color: var(--secondary-color);
    margin-top: 0;
    margin-bottom: 10px;
}

.tip-box i {
    margin-right: 8px;
}

/* Tables */
.settings-table, .comparison-table table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.settings-table th, .settings-table td, 
.comparison-table th, .comparison-table td {
    padding: 10px 15px;
    border: 1px solid #ddd;
    text-align: left;
}

.settings-table th, .comparison-table th {
    background-color: #f2f2f2;
    font-weight: 600;
}

.settings-table tr:nth-child(even), 
.comparison-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Bonus tip section */
.bonus-tip {
    background-color: #f0f5ff;
    padding: 25px;
    border-radius: 8px;
    margin: 30px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #4e54c8;
}

.bonus-tip h2 {
    color: #4e54c8;
    display: flex;
    align-items: center;
    margin-top: 0;
}

.bonus-tip h2 i {
    margin-right: 10px;
}

/* Conclusion section */
.conclusion {
    background-color: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    margin: 30px 0;
}

.conclusion h2 {
    margin-top: 0;
}

/* Troubleshooting section */
.troubleshooting {
    background-color: #fff9f9;
    padding: 25px;
    border-radius: 8px;
    margin: 30px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.troubleshooting h2 {
    color: #e74c3c;
    margin-top: 0;
}

.troubleshooting h3 {
    color: #c0392b;
}

/* Additional resources section */
.additional-resources {
    background-color: #f4f9ff;
    padding: 20px 25px;
    border-radius: 8px;
    margin: 30px 0;
}

.additional-resources h2 {
    margin-top: 0;
}

.additional-resources ul {
    list-style-type: none;
    padding-left: 0;
}

.additional-resources ul li {
    margin-bottom: 10px;
}

.additional-resources ul li a {
    display: inline-block;
    padding: 8px 0;
    position: relative;
}

.additional-resources ul li a::before {
    content: '→';
    margin-right: 8px;
    color: var(--primary-color);
}

/* Share post section */
.share-post {
    margin: 40px 0;
    text-align: center;
    padding: 20px;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.share-post h3 {
    margin-bottom: 15px;
}

.social-share {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-share a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: #f5f5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: var(--dark-gray);
}

.social-share a:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
}

/* Related posts section */
.related-posts {
    margin: 40px 0;
}

.related-posts h3 {
    margin-bottom: 20px;
    text-align: center;
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background-color: var(--white);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.sidebar-widget h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.3rem;
    color: var(--dark-blue);
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}

.recent-posts, .categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recent-posts li, .categories-list li {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f1f1;
}

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

.recent-posts a, .categories-list a {
    color: #444;
    transition: color 0.2s ease;
    display: block;
}

.recent-posts a:hover, .categories-list a:hover {
    color: var(--primary-color);
}

.sidebar-form {
    display: flex;
    flex-direction: column;
}

.sidebar-form input {
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Responsive styles */
@media (max-width: 992px) {
    .blog-post .container {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: static;
    }
    
    .feature-card, .tip-card {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .post-header h1 {
        font-size: 2rem;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 5px;
    }
    
    .feature-card h2, .tip-card h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .social-share {
        flex-wrap: wrap;
    }
}