/* Service Page Typography Improvements */

/* Article Content Styling */
.service-article {
    font-size: 18px;
    line-height: 1.8;
    color: #333;
    font-weight: 400;
}

.service-article h1 {
    font-size: 42px;
    line-height: 1.2;
    margin-bottom: 30px;
    color: #1a1a1a;
    font-weight: 600;
}

@media (max-width: 768px) {
    .service-article h1 {
        font-size: 32px;
    }
}

.service-article h2 {
    font-size: 32px;
    line-height: 1.3;
    margin-top: 40px;
    margin-bottom: 20px;
    color: #2c2c2c;
    font-weight: 600;
}

.service-article h3 {
    font-size: 26px;
    line-height: 1.4;
    margin-top: 35px;
    margin-bottom: 18px;
    color: #2c2c2c;
    font-weight: 500;
}

.service-article h4 {
    font-size: 22px;
    line-height: 1.4;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #2c2c2c;
    font-weight: 500;
}

.service-article p {
    margin-bottom: 20px;
    text-align: justify;
    hyphens: auto;
}

.service-article p:last-child {
    margin-bottom: 0;
}

/* List Styling */
.service-article ul,
.service-article ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

.service-article li {
    margin-bottom: 10px;
    line-height: 1.8;
}

.service-article ul li {
    list-style-type: disc;
}

.service-article ol li {
    list-style-type: decimal;
}

/* First Paragraph Drop Cap - Refined */
.service-article > p:first-of-type:first-letter {
    float: left;
    font-size: 75px;
    line-height: 60px;
    padding-right: 8px;
    margin-top: 3px;
    font-weight: 600;
    color: var(--base-color, #333);
}

/* Blockquote Styling */
.service-article blockquote {
    border-left: 4px solid var(--base-color, #333);
    padding: 20px 0 20px 30px;
    margin: 30px 0;
    font-style: italic;
    font-size: 20px;
    color: #555;
    background-color: #f9f9f9;
}

/* Image Styling within Article */
.service-article img {
    max-width: 100%;
    height: auto;
    margin: 30px 0;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Table Styling */
.service-article table {
    width: 100%;
    margin: 30px 0;
    border-collapse: collapse;
}

.service-article th,
.service-article td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.service-article th {
    background-color: #f5f5f5;
    font-weight: 600;
    color: #2c2c2c;
}

.service-article tr:hover {
    background-color: #fafafa;
}

/* Link Styling */
.service-article a {
    color: var(--base-color, #0066cc);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.service-article a:hover {
    border-bottom-color: var(--base-color, #0066cc);
}

/* Strong and Emphasis */
.service-article strong,
.service-article b {
    font-weight: 600;
    color: #1a1a1a;
}

.service-article em,
.service-article i {
    font-style: italic;
}

/* Code Styling */
.service-article code {
    background-color: #f4f4f4;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 16px;
}

.service-article pre {
    background-color: #f4f4f4;
    padding: 20px;
    border-radius: 5px;
    overflow-x: auto;
    margin: 30px 0;
}

.service-article pre code {
    background-color: transparent;
    padding: 0;
}

/* Horizontal Rule */
.service-article hr {
    border: none;
    height: 1px;
    background-color: #e0e0e0;
    margin: 40px 0;
}

/* CTA Section Improvements */
.service-cta {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 40px;
    border-radius: 10px;
    margin-top: 50px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.service-cta h2 {
    font-size: 28px;
    margin-bottom: 15px;
    color: #1a1a1a;
}

.service-cta p {
    font-size: 18px;
    color: #555;
    margin-bottom: 25px;
    text-align: center;
}

.service-cta .btn {
    font-size: 18px;
    padding: 12px 30px;
    font-weight: 500;
}

/* Area State Span */
.area-state {
    color: #666;
    font-weight: 400;
}

/* Container Width for Better Reading */
@media (min-width: 1200px) {
    .service-article {
        max-width: 800px;
        margin: 0 auto;
    }
}

/* Smooth Scrolling for Anchors */
html {
    scroll-behavior: smooth;
}

/* Selection Styling */
.service-article ::selection {
    background-color: var(--base-color, #0066cc);
    color: white;
}

.service-article ::-moz-selection {
    background-color: var(--base-color, #0066cc);
    color: white;
}