/* SEO Common Styles - Shared between blog and landing pages */

/* Base Typography for SEO Pages */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin: 1rem 0;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.25rem; }
}

/* Article Content - Main content area styles */
.article-content {
    line-height: 1.8;
    font-size: 16px;
    color: #34495e;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content ul,
.article-content ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

.article-content ul {
    list-style: disc;
}

.article-content ol {
    list-style: decimal;
}

.article-content li {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* Article Content Headings */
.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
    margin: 30px 0 20px;
    color: #2c3e50;
    font-weight: 600;
    line-height: 1.3;
}

.article-content h1 {
    font-size: 32px;
    margin-top: 0;
}

.article-content h2 {
    font-size: 28px;
}

.article-content h3 {
    font-size: 24px;
}

.article-content h4 {
    font-size: 20px;
}

.article-content h5 {
    font-size: 18px;
}

.article-content h6 {
    font-size: 16px;
    font-weight: 500;
}

.article-content blockquote {
    border-left: 4px solid #ff4757;
    padding-left: 20px;
    margin: 25px 0;
    font-style: italic;
    color: #7f8c8d;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

/* Links in article content */
.article-content a {
    color: #ff4757;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.article-content a:hover {
    color: #ff5252;
}

/* Links in headings */
.article-content h1 a,
.article-content h2 a,
.article-content h3 a,
.article-content h4 a,
.article-content h5 a,
.article-content h6 a {
    color: inherit;
    text-decoration: underline;
}

.article-content h1 a:hover,
.article-content h2 a:hover,
.article-content h3 a:hover,
.article-content h4 a:hover,
.article-content h5 a:hover,
.article-content h6 a:hover {
    color: #ff4757;
}

/* Links in lists */
.article-content li a {
    color: #ff4757;
    text-decoration: underline;
}

.article-content li a:hover {
    color: #ff5252;
}

/* Article Navigation (Previous/Next) */
.article-navigation {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.article-navigation .nav-left {
    flex: 1;
    text-align: left;
}

.article-navigation .nav-right {
    flex: 1;
    text-align: right;
}

.article-navigation .nav-right a {
    margin-left: 20px;
}

.article-navigation a {
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.article-navigation a:hover {
    color: #ff6b6b;
}

/* Article CTA Button */
.article-cta {
    text-align: center;
    margin-top: 40px;
    clear: both;
}

/* Section Titles */
.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 36px;
    color: #333;
}

/* Breadcrumb Navigation */
.breadcrumb {
    padding: 15px 0;
    background-color: #f8f9fa;
}

.breadcrumb ul {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    align-items: center;
}

.breadcrumb ul li {
    display: inline-flex;
    align-items: center;
}

.breadcrumb ul li:after {
    content: '/';
    margin: 0 10px;
    color: #999;
}

.breadcrumb ul li:last-child:after {
    content: '';
}

.breadcrumb ul li a {
    color: #666;
}

.breadcrumb ul li a:hover {
    color: #ff6b6b;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.pagination a {
    display: inline-block;
    padding: 8px 15px;
    margin: 0 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #ff4757;
}

.pagination a.active {
    background-color: #ff4757;
    color: white;
    border-color: #ff4757;
}

.pagination a:hover:not(.active) {
    background-color: #f1f1f1;
}

/* Sidebar Widgets */
.sidebar {
    width: 300px;
}

.sidebar-widget {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    padding: 20px;
    margin-bottom: 25px;
}

.widget-title {
    font-size: 18px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    color: #2c3e50;
}

/* Popular Posts Widget */
.popular-post {
    display: flex;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.popular-post:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.popular-post-image {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 15px;
}

.popular-post-title {
    font-size: 14px;
    color: #2c3e50;
    margin-bottom: 5px;
}

.popular-post-date {
    font-size: 12px;
    color: #95a5a6;
}

/* Read More Link */
.read-more {
    color: #ff6b6b;
    font-weight: 600;
    display: inline-block;
    cursor: pointer;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #ff5252;
}

/* Article Cards Grid (Related Pages) */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.article-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card-link:hover {
    text-decoration: none;
    transform: translateY(-5px);
}

.article-card-link:hover .article-card {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.article-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.article-img {
    height: 180px;
    background-size: cover;
    background-position: center;
}

/* Article card content (for related pages grid) */
.article-card .article-content {
    padding: 20px;
}

.article-card .article-content h3 {
    font-size: 18px;
    margin: 0 0 10px 0;
    color: #333;
    font-weight: 600;
}

.article-card .article-content p {
    color: #666;
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.6;
}

/* Cities/States list links */
.cities-list .city-item {
    text-decoration: none;
}

.cities-list .city-item:hover {
    text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
    /* Article content headings mobile */
    .article-content h1 {
        font-size: 24px;
    }

    .article-content h2 {
        font-size: 20px;
    }

    .article-content h3 {
        font-size: 18px;
    }

    .article-content h4 {
        font-size: 16px;
    }

    .article-content h5 {
        font-size: 15px;
    }

    .article-content h6 {
        font-size: 14px;
    }

    .article-content {
        font-size: 15px;
    }

    .article-navigation {
        flex-direction: column;
        gap: 15px;
    }

    .article-navigation .nav-left,
    .article-navigation .nav-right {
        width: 100%;
        text-align: left;
    }

    .article-navigation .nav-right a {
        margin-left: 0;
        margin-right: 15px;
        display: inline-block;
    }

    /* Article cards grid mobile */
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Section title mobile */
    .section-title {
        margin-bottom: 25px;
    }

    .section-title h2 {
        font-size: 24px;
    }

    /* Breadcrumb mobile */
    .breadcrumb {
        padding: 10px 0;
    }

    .breadcrumb ul {
        font-size: 13px;
        gap: 0;
        flex-wrap: nowrap;
        min-width: min-content;
    }

    .breadcrumb ul li {
        white-space: nowrap;
        flex-shrink: 0;
    }

    .breadcrumb ul li:after {
        margin: 0 5px;
        flex-shrink: 0;
    }

    /* Sidebar mobile */
    .sidebar {
        width: 100%;
    }

    .sidebar-widget {
        padding: 15px;
        margin-bottom: 20px;
    }

    .widget-title {
        font-size: 16px;
    }
}
