/* Enhanced Article Styling */
.page-content {
    font-family: 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-size: 17px;
    line-height: 1.8;
    color: #333;
    padding: 25px 30px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    margin-bottom: 30px;
    overflow-wrap: break-word;
}

/* Article Title Styling */
.singlepage-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1.2rem;
    padding-bottom: 15px;
    border-bottom: 3px solid #1abc9c;
    position: relative;
}

/* Publication Date Styling */
.post-meta {
    font-size: 0.95rem;
    color: #7f8c8d;
    margin-bottom: 25px;
    padding: 8px 12px;
    background-color: #f8f9fa;
    border-radius: 4px;
    display: inline-block;
}

/* Headings within Article */
.page-content h1, .page-content h2, .page-content h3, .page-content h4 {
    margin-top: 1.8em;
    margin-bottom: 0.8em;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.4;
}

.page-content h1 {
    font-size: 1.8rem;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.page-content h2 {
    font-size: 1.6rem;
}

.page-content h3 {
    font-size: 1.4rem;
}

.page-content h4 {
    font-size: 1.2rem;
}

/* Paragraph Styling */
.page-content p {
    margin-bottom: 1.5em;
}

/* List Styling */
.page-content ul, .page-content ol {
    padding-left: 2em;
    margin-bottom: 1.5em;
}

.page-content li {
    margin-bottom: 0.7em;
}

/* Image Styling */
.page-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 2em auto;
    border-radius: 6px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
}

/* Blockquote Styling */
.page-content blockquote {
    border-left: 4px solid #1abc9c;
    padding: 1em 1.5em;
    margin: 1.5em 0;
    background-color: #f8f9fa;
    font-style: italic;
    border-radius: 0 4px 4px 0;
}

/* Code and Pre Styling */
.page-content code {
    background-color: #f8f9fa;
    padding: 3px 6px;
    border-radius: 3px;
    font-family: Consolas, Monaco, 'Andale Mono', monospace;
    font-size: 0.9em;
    color: #e74c3c;
}

.page-content pre {
    background-color: #f8f9fa;
    padding: 1.2em;
    border-radius: 4px;
    overflow-x: auto;
    margin: 1.5em 0;
    border: 1px solid #eee;
}

/* Table Styling */
.page-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
    overflow-x: auto;
    display: block;
}

.page-content th, .page-content td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e1e1e1;
}

.page-content th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.page-content tr:hover {
    background-color: #f8f9fa;
}

/* Link Styling */
.page-content a {
    color: #3498db;
    text-decoration: none;
    border-bottom: 1px dotted #3498db;
    transition: all 0.2s ease;
}

.page-content a:hover {
    color: #2980b9;
    border-bottom: 1px solid #2980b9;
}

/* Tool Container Styling */
.page-content .tool-container {
    background-color: #f8f9fa;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    padding: 20px;
    margin: 2em 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.page-content .tool-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .page-content {
        padding: 20px;
        font-size: 16px;
    }
    
    .singlepage-title {
        font-size: 1.8rem;
    }
    
    .page-content h1 {
        font-size: 1.6rem;
    }
    
    .page-content h2 {
        font-size: 1.4rem;
    }
    
    .page-content h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 576px) {
    .page-content {
        padding: 15px;
        font-size: 15px;
    }
    
    .singlepage-title {
        font-size: 1.6rem;
    }
}