/*
Theme Name: Roof Leak Repair Channelview TX
Theme URI: https://example.com/
Author: Custom WordPress Development
Author URI: https://example.com/
Description: Custom WordPress Theme converted from static HTML/Tailwind site with responsive design, full template hierarchy, and dynamic navigation.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: roofleakrepairchannelviewtx
*/

/* WordPress Core Alignment & Layout Rules */
.alignnone {
    margin: 5px 20px 20px 0;
}
.aligncenter, div.aligncenter {
    display: block;
    margin: 5px auto 5px auto;
}
.alignright {
    float:right;
    margin: 5px 0 20px 20px;
}
.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}
a img.alignright {
    float: right;
    margin: 5px 0 20px 20px;
}
a img.alignnone {
    margin: 5px 20px 20px 0;
}
a img.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}
a img.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}
.wp-caption {
    background: #fff;
    border: 1px solid #f0f0f0;
    max-width: 96%;
    padding: 5px 3px 10px;
    text-align: center;
}
.wp-caption.alignnone {
    margin: 5px 20px 20px 0;
}
.wp-caption.alignleft {
    margin: 5px 20px 20px 0;
}
.wp-caption.alignright {
    margin: 5px 0 20px 20px;
}
.wp-caption img {
    border: 0 none;
    height: auto;
    margin: 0;
    max-width: 98.5%;
    padding: 0;
    width: auto;
}
.wp-caption p.wp-caption-text {
    font-size: 11px;
    line-height: 17px;
    margin: 0;
    padding: 0 4px 5px;
}
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

/* ==========================================================================
   Blog Layout Grid & Sticky Sidebar
   ========================================================================== */
.blog-layout-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

@media (min-width: 1024px) {
    .blog-layout-grid {
        grid-template-columns: minmax(0, 1fr) 340px;
        gap: 3.5rem;
        align-items: start;
    }
}

.blog-sidebar-sticky {
    position: -webkit-sticky;
    position: sticky;
    top: 7rem;
}

/* ==========================================================================
   Blog Article Content Typography (Tailwind Preflight Override)
   ========================================================================== */
.blog-article {
    font-size: 1.125rem;
    line-height: 1.85;
    color: hsl(var(--foreground) / 0.85);
    font-family: inherit;
    word-break: break-word;
}

.blog-article > * + * {
    margin-top: 1.5rem;
}

/* Paragraphs */
.blog-article p {
    color: hsl(var(--foreground) / 0.82);
    line-height: 1.85;
    margin-bottom: 1.5rem;
    letter-spacing: 0.005em;
}

/* Headings */
.blog-article h2 {
    font-size: 1.875rem;
    line-height: 1.3;
    font-weight: 700;
    color: hsl(var(--foreground));
    letter-spacing: -0.02em;
    margin-top: 3.25rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid hsl(var(--border));
    position: relative;
}

.blog-article h2::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 3.5rem;
    height: 2px;
    background-color: hsl(var(--primary));
}

.blog-article h3 {
    font-size: 1.4rem;
    line-height: 1.4;
    font-weight: 600;
    color: hsl(var(--foreground));
    letter-spacing: -0.01em;
    margin-top: 2.25rem;
    margin-bottom: 0.85rem;
}

.blog-article h4 {
    font-size: 1.15rem;
    line-height: 1.45;
    font-weight: 600;
    color: hsl(var(--foreground));
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
}

.blog-article h2:first-child,
.blog-article h3:first-child {
    margin-top: 0;
}

/* Bold & Emphasis */
.blog-article strong,
.blog-article b {
    color: hsl(var(--foreground));
    font-weight: 700;
}

/* Links inside content */
.blog-article a {
    color: hsl(var(--primary));
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: hsl(var(--primary) / 0.35);
    text-underline-offset: 3px;
    transition: all 0.2s ease;
}

.blog-article a:hover {
    color: hsl(var(--primary));
    text-decoration-color: hsl(var(--primary));
}

/* Unordered Lists */
.blog-article ul {
    list-style: none !important;
    padding-left: 0 !important;
    margin: 1.75rem 0 !important;
}

.blog-article ul > li {
    position: relative;
    padding-left: 1.85rem;
    margin-bottom: 0.85rem;
    color: hsl(var(--foreground) / 0.82);
    line-height: 1.75;
}

.blog-article ul > li::before {
    content: "";
    position: absolute;
    left: 0.25rem;
    top: 0.65em;
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 9999px;
    background-color: hsl(var(--primary));
    box-shadow: 0 0 0 3px hsl(var(--primary) / 0.2);
}

/* Ordered Lists */
.blog-article ol {
    list-style: decimal !important;
    padding-left: 1.5rem !important;
    margin: 1.75rem 0 !important;
    color: hsl(var(--foreground) / 0.82);
}

.blog-article ol > li {
    margin-bottom: 0.85rem;
    padding-left: 0.35rem;
    line-height: 1.75;
}

.blog-article ol > li::marker {
    color: hsl(var(--primary));
    font-weight: 700;
}

/* Blockquotes */
.blog-article blockquote {
    margin: 2.25rem 0;
    padding: 1.25rem 1.75rem;
    border-left: 4px solid hsl(var(--primary));
    background-color: hsl(var(--primary) / 0.05);
    border-radius: 0 0.85rem 0.85rem 0;
    color: hsl(var(--foreground));
    font-style: italic;
}

.blog-article blockquote p {
    margin-bottom: 0;
    color: hsl(var(--foreground));
    font-size: 1.075rem;
}

/* Code & Preformatted */
.blog-article code {
    background-color: hsl(var(--muted));
    border: 1px solid hsl(var(--border));
    border-radius: 0.375rem;
    padding: 0.2rem 0.45rem;
    font-size: 0.9em;
    color: hsl(var(--foreground));
}

/* Dividers */
.blog-article hr {
    margin: 3.5rem auto;
    width: 5rem;
    border: 0;
    border-top: 3px solid hsl(var(--primary) / 0.3);
    border-radius: 9999px;
}

/* Tables */
.blog-article table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 2.25rem 0;
    border: 1px solid hsl(var(--border));
    border-radius: 0.75rem;
    overflow: hidden;
    font-size: 0.975rem;
}

.blog-article th {
    background-color: hsl(var(--muted));
    font-weight: 600;
    color: hsl(var(--foreground));
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid hsl(var(--border));
    text-align: left;
}

.blog-article td {
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid hsl(var(--border) / 0.6);
    color: hsl(var(--foreground) / 0.82);
}

.blog-article tr:last-child td {
    border-bottom: none;
}

.blog-article tr:nth-child(even) td {
    background-color: hsl(var(--muted) / 0.35);
}

/* Images */
.blog-article img {
    border-radius: 0.85rem;
    max-width: 100%;
    height: auto;
    margin: 2rem 0;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
    border: 1px solid hsl(var(--border));
}

/* Responsive adjustments */
@media (max-width: 1023px) {
    .blog-article {
        font-size: 1.05rem;
        line-height: 1.8;
    }
    .blog-article h2 {
        font-size: 1.6rem;
        margin-top: 2.5rem;
    }
    .blog-article h3 {
        font-size: 1.25rem;
        margin-top: 1.85rem;
    }
}

/* Blog Pagination */
.pagination .nav-links {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid hsl(var(--border));
    background-color: hsl(var(--card));
    color: hsl(var(--foreground));
    transition: all 0.2s ease;
    text-decoration: none;
}

.pagination .page-numbers:hover {
    background-color: hsl(var(--muted));
    border-color: hsl(var(--primary));
    color: hsl(var(--primary));
}

.pagination .page-numbers.current {
    background-color: hsl(var(--primary));
    border-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    font-weight: 600;
}

