/* ============================================================
   needcarfinance.com — Shared Styles
   ============================================================ */

:root {
    --brand-primary: #1a73e8;
    --brand-dark: #0d47a1;
    --brand-light: #e8f0fe;
    --bg-gradient-start: #0f2027;
    --bg-gradient-mid: #203a43;
    --bg-gradient-end: #2c5364;
    --text-dark: #212529;
    --text-muted: #6c757d;
    --text-light: #cfd8dc;
    --footer-bg: #0f2027;
}

html, body {
    margin: 0;
    font-family: 'Inter', sans-serif;
}

/* ---- Navbar ---- */
.navbar-brand img {
    height: 60px;
}

.navbar {
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}

.navbar .nav-link {
    font-weight: 500;
    color: #333;
    padding: 0.5rem 1rem;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: var(--brand-primary);
}

.dropdown-menu {
    border: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .1);
}

/* ---- Hero (homepage) ---- */
.hero {
    background: linear-gradient(135deg, var(--bg-gradient-start), var(--bg-gradient-mid), var(--bg-gradient-end));
    color: #fff;
    padding: 5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
}

.hero h1 .highlight {
    color: var(--brand-primary);
}

.hero .lead {
    font-size: 1.25rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 1rem auto 2rem;
}

.hero .btn-cta {
    background: var(--brand-primary);
    color: #fff;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    border: none;
    font-size: 1.1rem;
    transition: background .2s;
}

.hero .btn-cta:hover {
    background: var(--brand-dark);
    color: #fff;
}

/* ---- Article Cards ---- */
.article-cards {
    padding: 4rem 0;
}

.article-cards h2 {
    font-weight: 700;
    margin-bottom: 2rem;
}

.article-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
    transition: transform .2s, box-shadow .2s;
    height: 100%;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, .1);
}

.article-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

.article-card .card-body {
    padding: 1.25rem;
}

.article-card .card-title {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.article-card .card-text {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.article-card .read-more {
    color: var(--brand-primary);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
}

.article-card .read-more:hover {
    text-decoration: underline;
}

/* ---- Trust Section ---- */
.trust-section {
    background: var(--brand-light);
    padding: 4rem 0;
}

.trust-section h2 {
    font-weight: 700;
    margin-bottom: 2rem;
}

.trust-icon {
    font-size: 2.5rem;
    color: var(--brand-primary);
    margin-bottom: 1rem;
}

.trust-section h5 {
    font-weight: 600;
}

.trust-section p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ---- Article Page ---- */
.breadcrumb-nav {
    padding: 1rem 0 0;
}

.breadcrumb-nav .breadcrumb {
    background: none;
    padding: 0;
    margin: 0;
    font-size: 0.9rem;
}

.breadcrumb-nav .breadcrumb a {
    color: var(--brand-primary);
    text-decoration: none;
}

.article-header {
    padding: 2rem 0 1rem;
}

.article-header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.3;
}

.article-meta {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.article-featured-img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 2rem;
    max-height: 400px;
    object-fit: cover;
}

.article-body {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #333;
}

.article-body h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.article-body h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.article-body p {
    margin-bottom: 1.25rem;
}

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

.article-body li {
    margin-bottom: 0.4rem;
}

.article-body table {
    width: 100%;
    margin: 1.5rem 0;
    border-collapse: collapse;
}

.article-body table th {
    background: var(--brand-light);
    font-weight: 600;
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 2px solid #dee2e6;
}

.article-body table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #eee;
}

.article-body .faq-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2.5rem;
}

.article-body .faq-section h2 {
    margin-top: 0;
}

.article-body .faq-section h3 {
    font-size: 1.1rem;
    margin-top: 1.5rem;
}

.article-body a {
    color: var(--brand-primary);
}

/* ---- Affiliate CTA Box (inline) ---- */
.cta-box {
    background: linear-gradient(135deg, #e8f0fe, #f0f4ff);
    border-left: 4px solid var(--brand-primary);
    border-radius: 10px;
    padding: 1.5rem 1.75rem;
    margin: 2rem 0;
}

.cta-box h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.cta-box p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.cta-box .btn-cta-inline {
    display: inline-block;
    background: var(--brand-primary);
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    transition: background .2s;
}

.cta-box .btn-cta-inline:hover {
    background: var(--brand-dark);
    color: #fff;
}

.cta-box .cta-disclosure {
    display: block;
    font-size: 0.75rem;
    color: #90a4ae;
    margin-top: 0.75rem;
}

/* ---- Sidebar CTA ---- */
.sidebar-cta {
    background: linear-gradient(135deg, var(--bg-gradient-start), var(--bg-gradient-mid));
    color: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.sidebar-cta h5 {
    color: #fff;
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}

.sidebar-cta p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.sidebar-cta .btn-cta-sidebar {
    display: inline-block;
    background: var(--brand-primary);
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.55rem 1.25rem;
    border-radius: 50px;
    text-decoration: none;
    transition: background .2s;
}

.sidebar-cta .btn-cta-sidebar:hover {
    background: #fff;
    color: var(--brand-primary);
}

.sidebar-cta .cta-disclosure {
    display: block;
    font-size: 0.7rem;
    color: #78909c;
    margin-top: 0.75rem;
}

/* ---- Sidebar ---- */
.sidebar-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.sidebar-card h5 {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.sidebar-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-card ul li {
    margin-bottom: 0.6rem;
}

.sidebar-card ul li a {
    color: var(--brand-primary);
    text-decoration: none;
    font-size: 0.95rem;
}

.sidebar-card ul li a:hover {
    text-decoration: underline;
}

.sidebar-mascot {
    text-align: center;
}

.sidebar-mascot img {
    width: 120px;
    margin-bottom: 0.75rem;
}

.sidebar-mascot p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ---- Footer ---- */
.site-footer {
    background: var(--footer-bg);
    color: #b0bec5;
    padding: 3rem 0 1.5rem;
    font-size: 0.95rem;
}

.site-footer h6 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.85rem;
}

.site-footer a {
    color: #b0bec5;
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--brand-primary);
}

.site-footer ul {
    list-style: none;
    padding: 0;
}

.site-footer ul li {
    margin-bottom: 0.4rem;
}

.site-footer .footer-mascot {
    width: 80px;
    margin-bottom: 0.75rem;
}

.site-footer .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .1);
    margin-top: 2rem;
    padding-top: 1rem;
    font-size: 0.85rem;
    color: #78909c;
}

.site-footer .disclaimer {
    font-size: 0.8rem;
    color: #607d8b;
    line-height: 1.6;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .hero .lead {
        font-size: 1.05rem;
    }

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

    .sidebar-card {
        margin-top: 2rem;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 3rem 0;
    }

    .hero h1 {
        font-size: 1.8rem;
    }
}
