/* ===========================
   RESET & BASE
   =========================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: #0d6efd;
    text-decoration: none;
}

a:hover {
    color: #0a58ca;
    text-decoration: underline;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* ===========================
   LAYOUT
   =========================== */
.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.main-content {
    flex: 1;
}

/* ===========================
   HEADER
   =========================== */
.site-header {
    background: #fff;
    border-bottom: 2px solid #e9ecef;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a5f2a;
    text-decoration: none;
}

.logo:hover {
    color: #c1272d;
    text-decoration: none;
}

.main-nav ul {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.main-nav a {
    display: block;
    padding: 6px 14px;
    border-radius: 6px;
    color: #495057;
    font-size: 0.95rem;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
}

.main-nav a:hover {
    background: #e9ecef;
    color: #1a5f2a;
    text-decoration: none;
}

/* ===========================
   HERO SECTION
   =========================== */
.hero {
    background: linear-gradient(135deg, #1a5f2a 0%, #2d8f45 50%, #c1272d 100%);
    color: #fff;
    padding: 60px 0 50px;
    text-align: center;
}

.hero h1 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    line-height: 1.3;
}

.hero-subtitle {
    font-size: 1.15rem;
    opacity: 0.92;
    max-width: 650px;
    margin: 0 auto;
}

/* ===========================
   CARDS GRID
   =========================== */
.calculators-section {
    padding: 50px 0;
}

.calculators-section h2 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: #1a5f2a;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.card {
    display: block;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 30px 25px;
    text-decoration: none;
    color: #333;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.card h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: #1a5f2a;
}

.card p {
    font-size: 0.95rem;
    color: #6c757d;
    margin-bottom: 15px;
}

.card-link {
    display: inline-block;
    color: #0d6efd;
    font-weight: 600;
    font-size: 0.95rem;
}

/* ===========================
   PAGE SECTIONS
   =========================== */
.page-section {
    padding: 40px 0 60px;
}

.page-section h1 {
    font-size: 2rem;
    color: #1a5f2a;
    margin-bottom: 15px;
}

.page-intro {
    font-size: 1.1rem;
    color: #6c757d;
    margin-bottom: 30px;
    max-width: 700px;
}

/* ===========================
   CALCULATOR BOX
   =========================== */
.calculator-box,
.form-box {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 35px 30px;
    margin-bottom: 40px;
    max-width: 640px;
}

/* ===========================
   FORMS
   =========================== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #333;
    font-size: 0.95rem;
}

.form-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    font-size: 1rem;
    color: #333;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: #1a5f2a;
    box-shadow: 0 0 0 3px rgba(26, 95, 42, 0.15);
}

textarea.form-input {
    resize: vertical;
    min-height: 120px;
}

.field-help {
    display: block;
    margin-top: 4px;
    color: #6c757d;
    font-size: 0.82rem;
    line-height: 1.4;
}

.field-errors {
    margin-top: 5px;
}

.field-errors .error {
    display: block;
    color: #c1272d;
    font-size: 0.875rem;
}

.result-step {
    font-size: 1rem;
    font-weight: 700;
    color: #1a5f2a;
    margin: 22px 0 4px;
    padding-bottom: 4px;
    border-bottom: 1px solid #e9ecef;
}

.result-step-desc {
    color: #6c757d;
    font-size: 0.85rem;
    margin-bottom: 8px;
}

/* ===========================
   BUTTONS
   =========================== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: #1a5f2a;
    color: #fff;
}

.btn-primary:hover {
    background: #155023;
}

/* ===========================
   RESULT BOX
   =========================== */
.result-box {
    margin-top: 30px;
    padding: 25px;
    background: #f0faf3;
    border: 2px solid #1a5f2a;
    border-radius: 10px;
}

.result-box h2 {
    font-size: 1.3rem;
    color: #1a5f2a;
    margin-bottom: 15px;
}

.result-table {
    width: 100%;
    border-collapse: collapse;
}

.result-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #d4edda;
    font-size: 0.95rem;
}

.result-table tr:last-child td {
    border-bottom: none;
}

.result-value {
    text-align: right;
    font-weight: 600;
    white-space: nowrap;
}

.result-negative {
    color: #c1272d;
}

.result-highlight {
    background: #d4edda;
}

.result-highlight td {
    font-size: 1.05rem;
    padding: 14px 12px;
}

/* ===========================
   MESSAGES (Django messages)
   =========================== */
.messages-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 15px 20px 0;
}

.alert {
    padding: 14px 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 0.95rem;
    font-weight: 500;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* ===========================
   SEO & CONTENT BLOCKS
   =========================== */
.seo-section {
    padding: 50px 0;
    background: #fff;
}

.seo-section h2 {
    font-size: 1.5rem;
    color: #1a5f2a;
    margin-bottom: 15px;
}

.seo-section p {
    margin-bottom: 12px;
    color: #555;
    line-height: 1.7;
}

.seo-block {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e9ecef;
}

.seo-block h2 {
    font-size: 1.4rem;
    color: #1a5f2a;
    margin-bottom: 12px;
}

.seo-block p {
    margin-bottom: 12px;
    color: #555;
    line-height: 1.7;
}

.seo-block ul {
    list-style: disc;
    padding-left: 25px;
    margin-bottom: 15px;
}

.seo-block li {
    margin-bottom: 6px;
    color: #555;
    line-height: 1.6;
}

.content-block {
    margin-bottom: 30px;
}

.content-block h2 {
    font-size: 1.4rem;
    color: #1a5f2a;
    margin-bottom: 10px;
}

.content-block p {
    margin-bottom: 10px;
    color: #555;
    line-height: 1.7;
}

.content-block ul {
    list-style: disc;
    padding-left: 25px;
    margin-bottom: 15px;
}

.content-block li {
    margin-bottom: 6px;
    color: #555;
    line-height: 1.6;
}

/* ===========================
   AD BANNERS (placeholder)
   =========================== */
.ad-banner {
    text-align: center;
    padding: 20px;
    margin: 20px auto;
    max-width: 728px;
    background: #f0f0f0;
    border: 1px dashed #ccc;
    border-radius: 8px;
    color: #999;
    font-size: 0.875rem;
}

/* ===========================
   FOOTER
   =========================== */
.site-footer {
    background: #1a1a2e;
    color: #ccc;
    padding: 40px 0 20px;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.footer-section p {
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 6px;
}

.footer-section a {
    color: #adb5bd;
    font-size: 0.9rem;
}

.footer-section a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid #2a2a4a;
    padding-top: 20px;
    text-align: center;
    font-size: 0.85rem;
    color: #888;
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 1.6rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .header-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .main-nav ul {
        gap: 4px;
    }

    .main-nav a {
        padding: 5px 10px;
        font-size: 0.875rem;
    }

    .calculator-box,
    .form-box {
        padding: 20px 15px;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .result-table td {
        font-size: 0.875rem;
        padding: 8px 6px;
    }

    .page-section h1 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 40px 0 30px;
    }

    .hero h1 {
        font-size: 1.3rem;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}

/* ===========================
   LEAD STEP 2 — INLINE IN RESULTS
   =========================== */
.lead-step2 {
    margin-top: 28px;
    padding: 28px 24px;
    background: linear-gradient(135deg, #fff8e1 0%, #fffde7 100%);
    border: 2px solid #ffc107;
    border-radius: 14px;
    position: relative;
    animation: leadFadeSlideIn 0.6s ease-out;
}

@keyframes leadFadeSlideIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.lead-step2-divider {
    text-align: center;
    margin-bottom: 18px;
}

.lead-step2-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ff6f00, #ffa000);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 5px 18px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.lead-step2-header {
    text-align: center;
    margin-bottom: 20px;
}

.lead-step2-header h3 {
    font-size: 1.25rem;
    color: #1a5f2a;
    margin-bottom: 8px;
    line-height: 1.4;
}

.lead-step2-header p {
    font-size: 0.93rem;
    color: #555;
    line-height: 1.6;
}

/* Trust badges */
.lead-trust-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}

.trust-badge {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    padding: 5px 14px;
    font-size: 0.82rem;
    font-weight: 500;
    color: #333;
    white-space: nowrap;
}

/* Form grid (nom + tel side by side) */
.lead-form-inline .form-group {
    margin-bottom: 14px;
}

.lead-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.lead-form-grid .form-group:last-child {
    grid-column: 1 / -1;
}

.lead-form-inline .form-group label {
    font-weight: 600;
    font-size: 0.9rem;
    color: #333;
    margin-bottom: 4px;
    display: block;
}

.lead-form-inline .form-group label small {
    font-weight: 400;
    color: #888;
}

/* Recap inline (compact) */
.lead-recap-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0 14px;
}

.lead-recap-item {
    font-size: 0.87rem;
    color: #555;
    background: #fff;
    border: 1px solid #e9ecef;
    padding: 4px 12px;
    border-radius: 6px;
}

.required {
    color: #c1272d;
    font-weight: 700;
}

.form-group-checkbox {
    margin: 16px 0 !important;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-weight: 400 !important;
    font-size: 0.85rem !important;
    color: #555 !important;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    accent-color: #1a5f2a;
}

/* CTA button with pulse */
.btn-lead-inline {
    display: block;
    width: 100%;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    background: linear-gradient(135deg, #1a5f2a 0%, #2d8f45 100%);
    color: #fff;
    transition: transform 0.15s, box-shadow 0.15s;
    text-align: center;
    animation: leadPulse 2.5s ease-in-out infinite;
}

@keyframes leadPulse {
    0%, 100% { box-shadow: 0 4px 15px rgba(26, 95, 42, 0.25); }
    50%      { box-shadow: 0 4px 25px rgba(26, 95, 42, 0.5); }
}

.btn-lead-inline:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(26, 95, 42, 0.35);
    animation: none;
}

.btn-lead-inline:active {
    transform: translateY(0);
}

/* Social proof */
.lead-social-proof {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
    font-size: 0.82rem;
    color: #666;
}

.lead-social-proof-avatars {
    display: flex;
    gap: -4px;
}

.avatar-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: -2px;
}

.avatar-dot:nth-child(1) { background: #1a5f2a; }
.avatar-dot:nth-child(2) { background: #ffc107; }
.avatar-dot:nth-child(3) { background: #2196f3; }

.lead-legal-text {
    margin-top: 14px;
    font-size: 0.76rem;
    color: #999;
    line-height: 1.5;
    text-align: center;
}

.lead-legal-text a {
    color: #1a5f2a;
    text-decoration: underline;
}

/* ===========================
   LEAD MODAL (popup d'accroche)
   =========================== */
.lead-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(3px);
}

.lead-modal-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

.lead-modal {
    background: #fff;
    border-radius: 18px;
    padding: 35px 30px;
    max-width: 420px;
    width: 90%;
    text-align: center;
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.lead-modal-overlay.visible .lead-modal {
    transform: scale(1) translateY(0);
}

.lead-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.6rem;
    color: #aaa;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
}

.lead-modal-close:hover {
    color: #333;
}

.lead-modal-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.lead-modal h3 {
    font-size: 1.3rem;
    color: #1a5f2a;
    margin-bottom: 10px;
}

.lead-modal-mensualite {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 8px;
}

.lead-modal-mensualite strong {
    color: #1a5f2a;
    font-size: 1.25rem;
}

.lead-modal p {
    font-size: 0.93rem;
    color: #555;
    line-height: 1.5;
    margin-bottom: 10px;
}

.lead-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 18px;
}

.btn-lead-modal {
    padding: 14px 24px;
    font-size: 1.05rem;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    background: linear-gradient(135deg, #1a5f2a 0%, #2d8f45 100%);
    color: #fff;
    transition: transform 0.15s, box-shadow 0.15s;
}

.btn-lead-modal:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 95, 42, 0.3);
}

.btn-lead-modal-skip {
    padding: 10px 24px;
    font-size: 0.9rem;
    font-weight: 500;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    background: transparent;
    color: #888;
    transition: color 0.15s;
}

.btn-lead-modal-skip:hover {
    color: #333;
}

/* ===========================
   LEAD STICKY BOTTOM BAR
   =========================== */
.lead-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9000;
    background: #fff;
    border-top: 2px solid #1a5f2a;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(100%);
    transition: transform 0.35s ease;
}

.lead-sticky-bar.visible {
    transform: translateY(0);
}

.lead-sticky-bar-inner {
    max-width: 700px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.lead-sticky-bar-text {
    font-size: 0.95rem;
    color: #333;
}

.lead-sticky-bar-text strong {
    color: #1a5f2a;
    font-size: 1.1rem;
}

.lead-sticky-bar-text span {
    color: #666;
    font-size: 0.88rem;
}

.btn-lead-sticky {
    padding: 10px 22px;
    font-size: 0.95rem;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    background: linear-gradient(135deg, #1a5f2a 0%, #2d8f45 100%);
    color: #fff;
    white-space: nowrap;
    transition: transform 0.15s, box-shadow 0.15s;
}

.btn-lead-sticky:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(26, 95, 42, 0.3);
}

/* ===========================
   RESPONSIVE — LEAD COMPONENTS
   =========================== */
@media (max-width: 768px) {
    .lead-step2 {
        padding: 20px 16px;
    }

    .lead-step2-header h3 {
        font-size: 1.1rem;
    }

    .lead-form-grid {
        grid-template-columns: 1fr;
    }

    .lead-trust-badges {
        gap: 6px;
    }

    .trust-badge {
        font-size: 0.76rem;
        padding: 4px 10px;
    }

    .lead-sticky-bar-inner {
        flex-direction: column;
        padding: 10px 16px;
        gap: 8px;
        text-align: center;
    }

    .btn-lead-sticky {
        width: 100%;
    }

    .lead-modal {
        padding: 25px 20px;
    }

    .lead-modal h3 {
        font-size: 1.15rem;
    }
}

/* ===========================
   CREDIT NAV LINKS
   =========================== */
.credit-nav-links {
    margin: 30px 0;
    padding: 20px 25px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.credit-nav-links p {
    font-weight: 600;
    color: #333;
    margin: 0;
    font-size: 0.95rem;
}

.credit-nav-links a {
    display: inline-block;
    padding: 8px 18px;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    color: #1a5f2a;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s;
}

.credit-nav-links a:hover {
    background: #1a5f2a;
    color: #fff;
    border-color: #1a5f2a;
    text-decoration: none;
}

/* ===========================
   BLOG LIST
   =========================== */
.blog-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 30px;
}

.blog-filter-tag {
    display: inline-block;
    padding: 6px 16px;
    border: 1px solid #dee2e6;
    border-radius: 20px;
    font-size: 0.875rem;
    color: #495057;
    background: #fff;
    text-decoration: none;
    transition: all 0.2s;
}

.blog-filter-tag:hover,
.blog-filter-tag.active {
    background: #1a5f2a;
    color: #fff;
    border-color: #1a5f2a;
    text-decoration: none;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 28px;
}

.blog-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.blog-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.blog-card-link:hover {
    text-decoration: none;
    color: inherit;
}

.blog-card-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    background-color: #e9ecef;
}

.blog-card-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a5f2a 0%, #2d8f45 50%, #c1272d 100%);
}

.blog-card-image-placeholder span {
    font-size: 3rem;
}

.blog-card-body {
    padding: 20px;
}

.blog-card-category {
    display: inline-block;
    font-size: 0.78rem;
    color: #1a5f2a;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-card-title {
    font-size: 1.15rem;
    line-height: 1.4;
    margin-bottom: 10px;
    color: #222;
}

.blog-card-excerpt {
    font-size: 0.9rem;
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.78rem;
    color: #adb5bd;
}

/* ===========================
   ARTICLE DETAIL
   =========================== */
.breadcrumb {
    font-size: 0.875rem;
    margin-bottom: 25px;
    color: #6c757d;
}

.breadcrumb a {
    color: #1a5f2a;
}

.breadcrumb-sep {
    margin: 0 6px;
    color: #adb5bd;
}

.breadcrumb-current {
    color: #333;
}

.article-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    align-items: start;
}

.article-header {
    margin-bottom: 30px;
}

.article-category-badge {
    display: inline-block;
    padding: 4px 14px;
    background: #e8f5e9;
    color: #1a5f2a;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.article-title {
    font-size: 2rem;
    line-height: 1.3;
    color: #1a1a2e;
    margin-bottom: 15px;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
}

.article-excerpt {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.7;
    font-style: italic;
    padding-left: 20px;
    border-left: 3px solid #1a5f2a;
}

.article-hero-image {
    margin-bottom: 30px;
    border-radius: 10px;
    overflow: hidden;
}

.article-hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Article content rich text */
.article-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #333;
}

.article-content h2 {
    font-size: 1.5rem;
    color: #1a5f2a;
    margin: 35px 0 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e8f5e9;
}

.article-content h3 {
    font-size: 1.25rem;
    color: #333;
    margin: 25px 0 10px;
}

.article-content p {
    margin-bottom: 16px;
}

.article-content ul,
.article-content ol {
    margin: 15px 0;
    padding-left: 30px;
}

.article-content li {
    margin-bottom: 8px;
    line-height: 1.7;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    font-size: 0.95rem;
}

.article-content table th {
    background: #1a5f2a;
    color: #fff;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
}

.article-content table td {
    padding: 10px 16px;
    border-bottom: 1px solid #e9ecef;
}

.article-content table tr:nth-child(even) {
    background: #f8f9fa;
}

.article-content table tr:hover {
    background: #e8f5e9;
}

.article-content blockquote {
    margin: 25px 0;
    padding: 20px 25px;
    background: #f0faf3;
    border-left: 4px solid #1a5f2a;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #555;
}

.article-content strong {
    color: #1a1a2e;
}

.article-content .highlight-box {
    padding: 20px 25px;
    background: linear-gradient(135deg, #e8f5e9 0%, #f0faf3 100%);
    border: 1px solid #c8e6c9;
    border-radius: 10px;
    margin: 25px 0;
}

.article-content .highlight-box h4 {
    color: #1a5f2a;
    margin-bottom: 10px;
}

.article-content .warning-box {
    padding: 20px 25px;
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: 10px;
    margin: 25px 0;
}

.article-content .example-box {
    padding: 20px 25px;
    background: #f3e5f5;
    border: 1px solid #ce93d8;
    border-radius: 10px;
    margin: 25px 0;
}

.article-content .example-box h4 {
    color: #7b1fa2;
    margin-bottom: 10px;
}

/* CTA box */
.article-cta-box {
    margin: 35px 0;
    padding: 25px 30px;
    background: linear-gradient(135deg, #1a5f2a 0%, #2d8f45 100%);
    color: #fff;
    border-radius: 12px;
    text-align: center;
}

.article-cta-box h3 {
    color: #fff;
    margin-bottom: 8px;
}

.article-cta-box p {
    opacity: 0.9;
    margin-bottom: 15px;
}

.article-cta-box .btn-primary {
    background: #fff;
    color: #1a5f2a;
    font-weight: 700;
}

.article-cta-box .btn-primary:hover {
    background: #f0faf3;
}

/* Share buttons */
.article-share {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 35px;
    padding-top: 25px;
    border-top: 1px solid #e9ecef;
    font-size: 0.9rem;
    color: #6c757d;
}

.share-btn {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
}

.share-btn:hover {
    text-decoration: none;
    color: #fff;
    opacity: 0.85;
}

.share-facebook { background: #1877F2; }
.share-twitter { background: #1DA1F2; }
.share-whatsapp { background: #25D366; }
.share-linkedin { background: #0A66C2; }

/* Sidebar */
.article-sidebar {
    position: sticky;
    top: 80px;
}

.sidebar-block {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.sidebar-block h3 {
    font-size: 1.05rem;
    color: #1a5f2a;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
}

.sidebar-article-link {
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
    text-decoration: none;
}

.sidebar-article-link:hover {
    text-decoration: none;
}

.sidebar-article-link:last-child {
    border-bottom: none;
}

.sidebar-article-title {
    display: block;
    font-size: 0.9rem;
    color: #333;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 4px;
}

.sidebar-article-link:hover .sidebar-article-title {
    color: #1a5f2a;
}

.sidebar-article-date {
    font-size: 0.78rem;
    color: #adb5bd;
}

.sidebar-links {
    list-style: none;
}

.sidebar-links li {
    margin-bottom: 10px;
}

.sidebar-links a {
    font-size: 0.9rem;
    color: #333;
}

.sidebar-links a:hover {
    color: #1a5f2a;
}

.sidebar-newsletter {
    background: linear-gradient(135deg, #f0faf3 0%, #e8f5e9 100%);
    border-color: #c8e6c9;
}

.sidebar-newsletter p {
    font-size: 0.875rem;
    color: #555;
    line-height: 1.5;
}

/* Responsive blog */
@media (max-width: 960px) {
    .article-layout {
        grid-template-columns: 1fr;
    }

    .article-sidebar {
        position: static;
    }

    .article-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .article-content table {
        font-size: 0.82rem;
    }

    .article-content table th,
    .article-content table td {
        padding: 8px 10px;
    }
}
