/* ===================================
   DealerForecast Blog Styles
   Adapted from SalesLane Marketing
   =================================== */

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #1d1d1f;
    overflow-x: hidden;
    background: #fbfbfd;
    -webkit-font-smoothing: antialiased;
}

/* ===================================
   Navigation
   =================================== */


/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, #0d2847 0%, #061528 100%);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0 20px;
}

.nav-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 56px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.nav-logo {
    height: 36px;
    width: auto;
}

.nav-title {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 600;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-link {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #ffffff;
}

.nav-login {
    background: #3b82f6;
    color: white;
    padding: 6px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.3s ease;
}

.nav-login:hover {
    background: #2563eb;
}


.nav-link.active {
    color: #ffffff;
}

.nav-cta {
    background: #3b82f6;
    color: white;
    padding: 6px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.3s ease;
}


.nav-login {
    background: #1e3a5f;
    color: white;
    padding: 6px 16px;
    border-radius: 980px;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.3s ease;
}

.nav-login:hover {
    background: #2a4a6f;
}

/* ===================================
   Container
   =================================== */

.container {
    max-width: 980px;
    margin: 0 auto;
}

.header-nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

main.container {
    max-width: 1200px;
    padding: 60px 20px;
}

/* ===================================
   Page Header (Blog Index)
   =================================== */

.page-header {
    background: radial-gradient(ellipse at center, #0d2847 0%, #061528 50%, #030b14 100%);
    color: white;
    padding: 116px 20px 60px;
    text-align: center;
}

.page-header h1 {
    font-size: clamp(40px, 6vw, 64px);
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.page-header p {
    font-size: clamp(17px, 2.5vw, 21px);
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto;
}

/* ===================================
   Blog Listing
   =================================== */

.blog-listing {
    background: #fff;
    padding: 80px 20px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.blog-card {
    background: #fbfbfd;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}

.blog-card-image {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #1e3a5f;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0.9;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
    opacity: 1;
}

.blog-card-content {
    padding: 28px 24px;
}

.blog-category {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #1e3a5f;
    background: rgba(30, 58, 95, 0.1);
    padding: 4px 12px;
    border-radius: 4px;
    margin-bottom: 16px;
}

.blog-card h2 {
    font-size: 22px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 12px;
    line-height: 1.3;
}

.blog-card h2 a {
    color: inherit;
    text-decoration: none;
}

.blog-card h2 a:hover {
    color: #1e3a5f;
}

.blog-card p {
    font-size: 15px;
    color: #86868b;
    line-height: 1.6;
    margin-bottom: 16px;
}

.blog-meta {
    font-size: 13px;
    color: #a1a1a6;
}

.blog-meta span {
    margin-right: 16px;
}

/* ===================================
   Blog Article
   =================================== */

.blog-article {
    margin-top: 10px;
}

.article-header {
    background: radial-gradient(ellipse at center, #0d2847 0%, #061528 50%, #030b14 100%);
    color: white;
    padding: 100px 20px 60px;
}

.article-header .blog-category {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    margin-bottom: 0;
    padding: 6px 14px;
}

.article-header h1 {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 20px;
}

.article-meta {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.6);
}

.article-meta span {
    margin-right: 20px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    color: #ffffff;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 14px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    transition: background 0.2s ease;
}

.back-link:hover {
    background: rgba(255, 255, 255, 0.2);
    text-decoration: none;
}


/* Hero Image - Full Width Treatment */
.article-hero {
    width: 100%;
    max-height: 480px;
    overflow: hidden;
    background: #1e3a5f;
}

.article-hero img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 480px;
}

/* ===================================
   Article Content
   =================================== */

.article-content {
    background: #fff;
    padding: 60px 20px;
}

.article-content .container {
    max-width: 720px;
}

.article-content h2 {
    font-size: 28px;
    font-weight: 600;
    color: #1d1d1f;
    margin-top: 48px;
    margin-bottom: 20px;
}

.article-content h2:first-child {
    margin-top: 0;
}

.article-content h3 {
    font-size: 22px;
    font-weight: 600;
    color: #1d1d1f;
    margin-top: 32px;
    margin-bottom: 16px;
}

.article-content p {
    font-size: 17px;
    color: #1d1d1f;
    line-height: 1.8;
    margin-bottom: 24px;
}

.article-content .lead {
    font-size: 21px;
    font-weight: 500;
    color: #1e3a5f;
    margin-bottom: 32px;
}

.article-content ul,
.article-content ol {
    margin: 24px 0;
    padding-left: 24px;
}

.article-content li {
    font-size: 17px;
    color: #1d1d1f;
    line-height: 1.7;
    margin-bottom: 12px;
}

.article-content strong {
    font-weight: 600;
}

.article-content em {
    font-style: italic;
}

/* Stat Highlight Box */
.stat-highlight {
    background: rgba(30, 58, 95, 0.08);
    border-left: 4px solid #3b82f6;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
}

.stat-highlight strong {
    color: #1e3a5f;
    font-size: 1.25rem;
}

/* Blockquote */
blockquote {
    border-left: 4px solid #1e3a5f;
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #555;
}

/* Key Insight Box */
.key-insight {
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
    border: 1px solid rgba(30, 58, 95, 0.2);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 12px;
}

.key-insight h4 {
    color: #1e3a5f;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

/* Data Table */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 32px 0;
}

.data-table th,
.data-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    font-size: 15px;
}

.data-table th {
    background: #fbfbfd;
    font-weight: 600;
    color: #1d1d1f;
}

.data-table td {
    color: #1d1d1f;
}

/* Article CTA */
.article-cta {
    background: rgba(30, 58, 95, 0.08);
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    margin-top: 60px;
}

.article-cta h3 {
    font-size: 24px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 12px;
    margin-top: 0;
}

.article-cta p {
    font-size: 17px;
    color: #86868b;
    margin-bottom: 24px;
}

/* Related Articles */
.related-articles {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.related-articles h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 16px;
    margin-top: 0;
}

.related-articles ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.related-articles li {
    margin-bottom: 12px;
}

.related-articles a {
    color: #1e3a5f;
    text-decoration: none;
    font-size: 16px;
}

.related-articles a:hover {
    text-decoration: underline;
}

/* ===================================
   Buttons
   =================================== */

.btn {
    padding: 12px 22px;
    border-radius: 980px;
    text-decoration: none;
    font-size: 17px;
    font-weight: 400;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background: #1e3a5f;
    color: white;
}

.btn-primary:hover {
    background: #2a4a6f;
}

.btn-secondary {
    color: #1e3a5f;
    border: none;
    background: transparent;
}

.btn-secondary:hover {
    text-decoration: underline;
}

/* ===================================
   CTA Section
   =================================== */

.cta {
    background: linear-gradient(135deg, #1e3a5f 0%, #0a1929 100%);
    color: white;
    padding: 100px 20px;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.cta .container {
    position: relative;
    z-index: 1;
    text-align: center;
}

.cta h2 {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: -0.015em;
}

.cta p {
    font-size: clamp(17px, 2.5vw, 21px);
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 30px;
}

/* ===================================
   Footer
   =================================== */

footer {
    background: #1a1a2e;
    color: #ffffff;
    padding: 48px 20px;
    text-align: center;
}

.footer-content {
    max-width: 980px;
    margin: 0 auto;
}

.footer-brand {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #ffffff;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 24px;
    font-size: 14px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    line-height: 1.5;
}

/* ===================================
   Comparison Table
   =================================== */

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
}

.comparison-table th,
.comparison-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    font-size: 15px;
}

.comparison-table th {
    background: rgba(30, 58, 95, 0.08);
    color: #1e3a5f;
    font-weight: 600;
}

.comparison-table tr:hover {
    background: rgba(0, 0, 0, 0.02);
}

/* ===================================
   Pros/Cons Layout
   =================================== */

.pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 2rem 0;
}

.pros,
.cons {
    padding: 1.5rem;
    border-radius: 8px;
}

.pros {
    background: #e8f5e9;
    border-left: 4px solid #4caf50;
}

.cons {
    background: #ffebee;
    border-left: 4px solid #f44336;
}

.pros h4,
.cons h4 {
    margin-bottom: 1rem;
    color: #1e3a5f;
}

.pros ul,
.cons ul {
    margin: 0;
    padding-left: 1.25rem;
}

/* ===================================
   CTA Section (Blog Index)
   =================================== */

.cta-section {
    background: linear-gradient(135deg, #1e3a5f 0%, #0a1929 100%);
    color: white;
    padding: 80px 20px;
    text-align: center;
    margin-top: 2rem;
}

.cta-section h2 {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 600;
    margin-bottom: 16px;
}

.cta-section p {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 24px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ===================================
   Responsive Styles
   =================================== */

@media (max-width: 768px) {
    nav {
        padding: 0 16px;
    }

    .nav-logo {
        height: 24px;
    }

    .nav-links {
        gap: 16px;
    }

    .nav-link {
        font-size: 12px;
    }

    .nav-login {
        font-size: 12px;
        padding: 5px 12px;
    }

    .page-header {
        padding: 100px 20px 40px;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .article-header {
        padding: 80px 20px 40px;
    }

    .article-content {
        padding: 40px 20px;
    }

    .article-cta {
        padding: 28px 20px;
    }

    .footer-links {
        flex-direction: column;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .btn {
        width: 100%;
        text-align: center;
    }
    
    .pros-cons {
        grid-template-columns: 1fr;
    }
    
    .comparison-table {
        font-size: 0.875rem;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 0.75rem 0.5rem;
    }
}
