/* Standardized content styling for all pages */
article.page-content {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    margin-bottom: 3rem;
}

article.page-content h1,
article.page-content h2,
article.page-content h3,
article.page-content h4,
article.page-content h5,
article.page-content h6 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.2;
    color: #1a1a1a;
}

article.page-content h1 {
    font-size: 2.5rem;
}

article.page-content h2 {
    font-size: 2rem;
}

article.page-content h3 {
    font-size: 1.75rem;
}

article.page-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

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

article.page-content li {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

/* Base image styles */
article.page-content img {
    max-width: 400px; /* Half size of previous width */
    width: auto;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 1rem;
}

/* Image containers */
article.page-content .article-image {
    margin: 1rem 0;
}

article.page-content .article-image img {
    max-width: 400px; /* Half size of previous width */
    width: auto;
    margin: 0 auto;
}

/* Image alignment for wrapping text */
article.page-content .image-left {
    float: left;
    margin-right: 2rem;
    margin-bottom: 1.5rem;
    margin-top: 0.5rem;
    max-width: 400px;
    width: auto;
}

article.page-content .image-right {
    float: right;
    margin-left: 2rem;
    margin-bottom: 1.5rem;
    margin-top: 0.5rem;
    max-width: 400px;
    width: auto;
}

/* Clearfix for proper text flow after floated elements */
article.page-content .clearfix::after {
    content: "";
    clear: both;
    display: table;
}

article.page-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: 1rem;
}

article.page-content table th,
article.page-content table td {
    padding: 0.75rem;
    border: 1px solid #ddd;
}

article.page-content table th {
    background-color: #f8f8f8;
    font-weight: 600;
    text-align: left;
}

article.page-content table tr:nth-child(even) {
    background-color: #f9f9f9;
}

article.page-content blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    border-left: 4px solid #0066cc;
    background-color: #f5f5f5;
    font-style: italic;
}

article.page-content strong {
    font-weight: 600;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    article.page-content h1 {
        font-size: 2rem;
    }
    
    article.page-content h2 {
        font-size: 1.75rem;
    }
    
    article.page-content h3 {
        font-size: 1.5rem;
    }
    
    article.page-content p,
    article.page-content li {
        font-size: 1rem;
    }
    
    article.page-content img,
    article.page-content .article-image img,
    article.page-content .image-left,
    article.page-content .image-right {
        max-width: 100%;
        float: none;
        margin: 1rem auto;
        display: block;
    }
}
