/* Blog-specific styles */

/* Blog Header */
.blog-header {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    padding: 120px 0 80px;
    text-align: center;
}

.blog-header h1 {
    font-size: 3rem;
    color: #1e3a8a;
    margin-bottom: 1rem;
}

.blog-header p {
    font-size: 1.2rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
}

/* Blog Articles Grid */
.blog-articles {
    padding: 80px 0;
    background-color: #f9fafb;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.article-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.article-image {
    height: 200px;
    overflow: hidden;
}

.article-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-content {
    padding: 2rem;
}

.article-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.article-date {
    color: #6b7280;
}

.article-category {
    background-color: #dbeafe;
    color: #1e40af;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: 500;
}

.article-card h2 {
    margin-bottom: 1rem;
}

.article-card h2 a {
    text-decoration: none;
    color: #1e3a8a;
    transition: color 0.3s ease;
}

.article-card h2 a:hover {
    color: #3b82f6;
}

.article-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.article-card h3 a {
    text-decoration: none;
    color: #1e3a8a;
    transition: color 0.3s ease;
}

.article-card h3 a:hover {
    color: #3b82f6;
}

.read-more {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #2563eb;
}

/* Article Page */
.article-page {
    padding: 120px 0 80px;
    background-color: #f9fafb;
}

.article-breadcrumb {
    margin-bottom: 2rem;
    color: #6b7280;
}

.article-breadcrumb a {
    color: #3b82f6;
    text-decoration: none;
}

.article-breadcrumb a:hover {
    text-decoration: underline;
}

.article-header {
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.article-header .article-meta {
    margin-bottom: 1.5rem;
}

.article-read-time {
    color: #6b7280;
    font-weight: 500;
}

.article-header h1 {
    font-size: 2.5rem;
    color: #1e3a8a;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.article-intro {
    font-size: 1.2rem;
    color: #4b5563;
    font-style: italic;
    line-height: 1.6;
}

/* Article Content */
.article-content {
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.article-featured-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    margin: 2rem auto;
    display: block;
    border-radius: 8px;
}

.article-content h2 {
    color: #1e3a8a;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #dbeafe;
}

.article-content h3 {
    color: #1e40af;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.article-content h4 {
    color: #374151;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.article-content ul,
.article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.article-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.article-content blockquote {
    border-left: 4px solid #3b82f6;
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    background-color: #f8fafc;
    font-style: italic;
    color: #4b5563;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.article-content th,
.article-content td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.article-content th {
    background-color: #f3f4f6;
    font-weight: 600;
    color: #374151;
}

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

/* Special Content Blocks */
.case-study {
    background: #f0f9ff;
    border: 1px solid #0ea5e9;
    border-radius: 8px;
    padding: 2rem;
    margin: 2rem 0;
}

.case-study h4 {
    color: #0ea5e9;
    margin-bottom: 1rem;
}

.cost-breakdown {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin: 2rem 0;
    overflow: hidden;
}

.cost-item {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
    align-items: center;
}

.cost-item:last-child {
    border-bottom: none;
}

.cost-total {
    background-color: #f3f4f6;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    padding: 1rem;
    font-weight: 600;
    align-items: center;
}

.cost-label {
    color: #374151;
}

.cost-value {
    color: #1e40af;
    font-weight: 600;
    text-align: right;
}

.cost-percent {
    color: #6b7280;
    text-align: right;
}

.savings-table {
    width: 100%;
    margin: 2rem 0;
}

.savings-table th {
    background-color: #1e40af;
    color: white;
}

.savings-table tr:nth-child(even) {
    background-color: #f8fafc;
}

.funding-schedule {
    width: 100%;
    margin: 2rem 0;
    border-radius: 8px;
    overflow: hidden;
}

.funding-schedule th {
    background-color: #10b981;
    color: white;
}

/* Investment Comparison */
.investment-comparison {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.investment-option {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
}

.investment-option h4 {
    margin-bottom: 1rem;
    color: #1e40af;
}

/* Property Value Comparison */
.property-value {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
    padding: 2rem;
    background: #f0f9ff;
    border-radius: 8px;
}

.value-before,
.value-after {
    text-align: center;
    flex: 1;
}

.value-amount {
    font-size: 2rem;
    font-weight: bold;
    color: #1e40af;
    margin: 0.5rem 0;
}

.value-arrow {
    font-size: 2rem;
    color: #10b981;
    font-weight: bold;
}

/* Cost Comparison */
.cost-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.cost-before,
.cost-after {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
}

.cost-breakdown-monthly {
    margin-top: 1rem;
}

.cost-line {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.cost-total-monthly {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    font-weight: bold;
    color: #1e40af;
    border-top: 2px solid #dbeafe;
    margin-top: 1rem;
}

/* Timeline */
.timeline {
    margin: 2rem 0;
}

.timeline-item {
    display: flex;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.timeline-date {
    background-color: #3b82f6;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    white-space: nowrap;
    margin-right: 2rem;
    min-width: 120px;
    text-align: center;
}

.timeline-content {
    flex: 1;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
}

.timeline-content h4 {
    color: #1e40af;
    margin-bottom: 0.5rem;
}

/* Summary Benefits */
.summary-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.benefit-item {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
}

.benefit-item h4 {
    color: #1e40af;
    margin-bottom: 0.5rem;
}

/* Article CTA */
.article-cta {
    background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 100%);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    margin: 3rem 0;
}

.article-cta h3 {
    color: #1e3a8a;
    margin-bottom: 1rem;
}

.article-cta p {
    margin-bottom: 1.5rem;
    color: #4b5563;
}

/* Article Navigation */
.article-navigation {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.article-share {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.article-share span {
    color: #6b7280;
    font-weight: 500;
}

.article-share a {
    text-decoration: none;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.article-share a:hover {
    transform: scale(1.2);
}

/* Related Articles */
.related-articles {
    padding: 60px 0;
}

.related-articles h2 {
    text-align: center;
    color: #1e3a8a;
    margin-bottom: 2rem;
}

.related-articles .articles-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.related-articles .article-card {
    background: white;
    padding: 2rem;
}

.related-articles .article-card h3 {
    margin-bottom: 1rem;
}

/* Legal Page Enhancements */
.cookies-table {
    width: 100%;
    margin: 1.5rem 0;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.cookies-table th {
    background-color: #1e40af;
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.cookies-table td {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.cookies-table tr:last-child td {
    border-bottom: none;
}

.cookie-settings-info {
    background: #f0f9ff;
    border: 1px solid #0ea5e9;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    text-align: center;
}

.contact-info-legal {
    background: #f8fafc;
    border-radius: 8px;
    padding: 2rem;
    margin: 2rem 0;
}

.contact-info-legal h3 {
    color: #1e40af;
    margin-bottom: 1rem;
}

.contact-info-legal ul {
    list-style: none;
    padding: 0;
}

.contact-info-legal li {
    margin-bottom: 0.5rem;
}

/* Responsive Design for Blog */
@media (max-width: 768px) {
    .blog-header h1 {
        font-size: 2rem;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }

    .article-header {
        padding: 2rem;
    }

    .article-header h1 {
        font-size: 2rem;
    }

    .article-content {
        padding: 2rem;
    }

    .article-navigation {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .cost-item,
    .cost-total {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        text-align: left;
    }

    .cost-value,
    .cost-percent {
        text-align: left;
    }

    .cost-comparison {
        grid-template-columns: 1fr;
    }

    .property-value {
        flex-direction: column;
        text-align: center;
    }

    .value-arrow {
        transform: rotate(90deg);
    }

    .investment-comparison {
        grid-template-columns: 1fr;
    }

    .timeline-item {
        flex-direction: column;
        text-align: center;
    }

    .timeline-date {
        margin-right: 0;
        margin-bottom: 1rem;
    }

    .summary-benefits {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .article-header {
        padding: 1.5rem;
    }

    .article-content {
        padding: 1.5rem;
    }

    .article-content table {
        font-size: 0.9rem;
    }

    .article-content th,
    .article-content td {
        padding: 0.75rem 0.5rem;
    }

    .case-study {
        padding: 1.5rem;
    }

    .article-cta {
        padding: 1.5rem;
    }
}
