/* ========================================
   Blog Post Content Styling
   Quality Lube Express - Zachary, LA
   ======================================== */

/* Blog Post Container */
.for_blogpost {
    position: relative;
    background-size: cover !important;
    background-position: center !important;
}

/* Blog Post Content Area */
.w-post-elm.post_content {
    font-size: 18px;
    line-height: 1.8;
    color: #333;
    max-width: 100%;
}

/* Blog Post Paragraphs */
.w-post-elm.post_content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 18px;
    color: #333;
}

.w-post-elm.post_content p:last-child {
    margin-bottom: 0;
}

/* Blog Post Headings */
.w-post-elm.post_content h1,
.w-post-elm.post_content h2,
.w-post-elm.post_content h3,
.w-post-elm.post_content h4,
.w-post-elm.post_content h5,
.w-post-elm.post_content h6 {
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    color: #1a1a1a;
}

.w-post-elm.post_content h1 {
    font-size: 2.5rem;
}

.w-post-elm.post_content h2 {
    font-size: 2rem;
    color: var(--color-content-primary, #212121);
}

.w-post-elm.post_content h3 {
    font-size: 1.75rem;
}

.w-post-elm.post_content h4 {
    font-size: 1.5rem;
}

.w-post-elm.post_content h5 {
    font-size: 1.25rem;
}

.w-post-elm.post_content h6 {
    font-size: 1.1rem;
}

/* First heading should have less top margin */
.w-post-elm.post_content h1:first-child,
.w-post-elm.post_content h2:first-child,
.w-post-elm.post_content h3:first-child,
.w-post-elm.post_content h4:first-child,
.w-post-elm.post_content h5:first-child,
.w-post-elm.post_content h6:first-child {
    margin-top: 0;
}

/* Blog Post Links */
.w-post-elm.post_content a {
    color: var(--color-content-primary, #212121);
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.3s ease, text-decoration-color 0.3s ease;
}

.w-post-elm.post_content a:hover,
.w-post-elm.post_content a:focus {
    color: var(--color-content-primary-faded, #424242);
    text-decoration-color: var(--color-content-primary-faded, #424242);
}

/* Blog Post Lists */
.w-post-elm.post_content ul,
.w-post-elm.post_content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
    line-height: 1.8;
}

.w-post-elm.post_content li {
    margin-bottom: 0.75rem;
    font-size: 18px;
    color: #333;
}

.w-post-elm.post_content li:last-child {
    margin-bottom: 0;
}

/* Nested Lists */
.w-post-elm.post_content ul ul,
.w-post-elm.post_content ol ol,
.w-post-elm.post_content ul ol,
.w-post-elm.post_content ol ul {
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
}

/* Blog Post Blockquotes */
.w-post-elm.post_content blockquote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    border-left: 4px solid var(--color-content-primary, #212121);
    background: #f5f5f5;
    font-style: italic;
    font-size: 1.1rem;
    color: #555;
}

.w-post-elm.post_content blockquote p {
    margin-bottom: 0.75rem;
}

.w-post-elm.post_content blockquote p:last-child {
    margin-bottom: 0;
}

/* Blog Post Images */
.w-post-elm.post_content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 2rem auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Blog Post Code */
.w-post-elm.post_content code {
    background: #f5f5f5;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9em;
    color: #d63384;
}

.w-post-elm.post_content pre {
    background: #f5f5f5;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 2rem 0;
}

.w-post-elm.post_content pre code {
    background: none;
    padding: 0;
    color: #333;
}

/* Blog Post Tables */
.w-post-elm.post_content table {
    width: 100%;
    margin: 2rem 0;
    border-collapse: collapse;
    font-size: 16px;
}

.w-post-elm.post_content table th,
.w-post-elm.post_content table td {
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    text-align: left;
}

.w-post-elm.post_content table th {
    background: var(--color-content-primary, #212121);
    color: #fff;
    font-weight: 700;
}

.w-post-elm.post_content table tr:nth-child(even) {
    background: #f9f9f9;
}

/* Blog Post Strong/Bold Text */
.w-post-elm.post_content strong,
.w-post-elm.post_content b {
    font-weight: 700;
    color: #1a1a1a;
}

/* Blog Post Emphasis/Italic Text */
.w-post-elm.post_content em,
.w-post-elm.post_content i {
    font-style: italic;
}

/* Blog Post Horizontal Rules */
.w-post-elm.post_content hr {
    margin: 3rem 0;
    border: none;
    border-top: 2px solid #e0e0e0;
}

/* Blog Post Title */
.w-post-elm.post_title.entry-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #fff;
}

/* Blog Post Meta Information */
.w-hwrapper.highlight_faded {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 1rem;
}

.w-post-elm.post_date,
.w-post-elm.post_author,
.w-post-elm.post_comments {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.w-post-elm.post_date i,
.w-post-elm.post_author i,
.w-post-elm.post_comments i {
    opacity: 0.8;
}

/* Blog Post Taxonomy Badge */
.w-post-elm.post_taxonomy.style_badge {
    margin-bottom: 1rem;
}

.w-post-elm.post_taxonomy .w-btn.us-btn-style_badge {
    font-size: 14px;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Blog Post Sharing Buttons */
.w-sharing {
    margin: 2rem 0;
}

.w-sharing-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.w-sharing-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-content-primary, #212121);
    color: #fff;
    transition: all 0.3s ease;
}

.w-sharing-item:hover,
.w-sharing-item:focus {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.w-sharing-item.email {
    background: #7f7f7f;
}

.w-sharing-item.facebook {
    background: #1877f2;
}

.w-sharing-item.twitter {
    background: #000;
}

.w-sharing-item.linkedin {
    background: #0a66c2;
}

.w-sharing-item.pinterest {
    background: #e60023;
}

/* Blog Post Custom Field (Photo Credits) */
.w-post-elm.post_custom_field {
    font-size: 14px;
    color: #666;
    font-style: italic;
    margin-top: 1rem;
}

.w-post-elm.post_custom_field a {
    color: #666;
    text-decoration: underline;
}

.w-post-elm.post_custom_field a:hover {
    color: #333;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .w-post-elm.post_content {
        font-size: 17px;
    }
    
    .w-post-elm.post_content p,
    .w-post-elm.post_content li {
        font-size: 17px;
    }
    
    .w-post-elm.post_title.entry-title {
        font-size: 2rem;
    }
    
    .w-post-elm.post_content h2 {
        font-size: 1.75rem;
    }
    
    .w-post-elm.post_content h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .w-post-elm.post_content {
        font-size: 16px;
    }
    
    .w-post-elm.post_content p,
    .w-post-elm.post_content li {
        font-size: 16px;
        line-height: 1.7;
    }
    
    .w-post-elm.post_title.entry-title {
        font-size: 1.75rem;
    }
    
    .w-post-elm.post_content h2 {
        font-size: 1.5rem;
        margin-top: 2rem;
    }
    
    .w-post-elm.post_content h3 {
        font-size: 1.35rem;
    }
    
    .w-post-elm.post_content h4 {
        font-size: 1.25rem;
    }
    
    .w-post-elm.post_content ul,
    .w-post-elm.post_content ol {
        padding-left: 1.5rem;
    }
    
    .w-post-elm.post_content blockquote {
        padding: 1rem 1.5rem;
        margin: 1.5rem 0;
    }
    
    .w-hwrapper.highlight_faded {
        gap: 1rem;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .w-post-elm.post_content {
        font-size: 15px;
    }
    
    .w-post-elm.post_content p,
    .w-post-elm.post_content li {
        font-size: 15px;
    }
    
    .w-post-elm.post_title.entry-title {
        font-size: 1.5rem;
    }
    
    .w-post-elm.post_content h2 {
        font-size: 1.35rem;
    }
    
    .w-post-elm.post_content h3 {
        font-size: 1.25rem;
    }
    
    .w-post-elm.post_content ul,
    .w-post-elm.post_content ol {
        padding-left: 1.25rem;
    }
}

/* Print Styles */
@media print {
    .w-post-elm.post_content {
        font-size: 12pt;
        line-height: 1.6;
        color: #000;
    }
    
    .w-post-elm.post_content a {
        color: #000;
        text-decoration: underline;
    }
    
    .w-post-elm.post_content h2 {
        page-break-after: avoid;
    }
    
    .w-sharing {
        display: none;
    }
}
