/* Knowledge Base Article Styles */

/* Remove hero images from knowledge category pages */
.page-header .page-header-background {
    display: none !important;
}

.page-header {
    background: linear-gradient(135deg, #0f2847 0%, #1a365d 100%) !important;
    position: relative;
    padding: 120px 0 80px;
}

/* Center CTA buttons on knowledge base pages */
.final-cta .cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.final-cta .cta-content h2 {
    text-align: center !important;
    margin-bottom: 1rem;
}

.final-cta .cta-content p {
    text-align: center !important;
    margin-bottom: 2rem;
}

.final-cta .cta-buttons {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 1.5rem !important;
    flex-wrap: wrap !important;
}

.final-cta .cta-buttons .cta-primary,
.final-cta .cta-buttons .cta-secondary {
    display: inline-block !important;
    padding: 1rem 2rem !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    border-radius: 6px !important;
    transition: all 0.3s ease !important;
    white-space: nowrap !important;
    min-width: fit-content !important;
}

.final-cta .cta-buttons .cta-primary {
    background: #051d40 !important;
    color: white !important;
    border: 2px solid #051d40 !important;
}

.final-cta .cta-buttons .cta-secondary {
    background: white !important;
    color: #051d40 !important;
    border: 2px solid #051d40 !important;
}

.final-cta .cta-buttons .cta-primary:hover {
    background: #0a2a5c !important;
    transform: translateY(-2px) !important;
}

.final-cta .cta-buttons .cta-secondary:hover {
    background: #051d40 !important;
    color: white !important;
    transform: translateY(-2px) !important;
}

/* Hero Section for Articles */
.article-hero {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a365d 0%, #2d3748 100%);
    overflow: hidden;
    margin-bottom: 60px;
}

.article-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../public/SB shutterstock license Bay Point canyon 3 copy.jpeg') center/cover;
    opacity: 0.15;
    z-index: 0;
}

.article-hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 80px 40px;
    text-align: center;
    color: white;
}

.article-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    color: white;
}

.article-hero .subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    font-weight: 700;
    line-height: 1.6;
}

/* Article Container */
.article-container,
.article-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 40px 80px;
}

.article-content .container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 40px 80px;
}

/* Article Meta Information */
.article-meta-info {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 25px 0;
    margin-bottom: 40px;
    border-bottom: 2px solid #e2e8f0;
    font-size: 0.95rem;
    color: white;
}

.article-meta-info .meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-meta-info svg {
    width: 18px;
    height: 18px;
}

/* Disclaimer Box */
.disclaimer-box {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-left: 5px solid #f59e0b;
    padding: 25px 30px;
    margin: 40px 0;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.disclaimer-box p {
    margin: 0;
    color: white;
    font-size: 0.95rem;
    line-height: 1.7;
}

.disclaimer-box strong {
    font-weight: 600;
    color: white;
}

/* Article Body Typography */
.article-body {
    color: white;
    line-height: 1.8;
}

.article-body h2 {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-top: 60px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid #3b82f6;
    line-height: 1.3;
}

.article-body h2:first-of-type {
    margin-top: 0;
}

.article-body h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    margin-top: 45px;
    margin-bottom: 20px;
    line-height: 1.4;
}

.article-body h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
    margin-top: 35px;
    margin-bottom: 15px;
}

.article-body p {
    font-size: 1.125rem;
    line-height: 1.9;
    color: white;
    margin-bottom: 25px;
}

.article-body ul,
.article-body ol {
    margin: 25px 0;
    padding-left: 35px;
}

.article-body li {
    font-size: 1.1rem;
    line-height: 1.9;
    color: white;
    margin-bottom: 15px;
    padding-left: 10px;
}

.article-body ul li::marker {
    color: #3b82f6;
    font-size: 1.2em;
}

.article-body ol li::marker {
    color: #3b82f6;
    font-weight: 600;
}

.article-body strong {
    font-weight: 600;
    color: white;
}

/* Article CTA Box */
.article-cta {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #2563eb 100%);
    border-radius: 16px;
    padding: 50px 40px;
    margin: 60px 0;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3),
                0 10px 20px rgba(0, 0, 0, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.article-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.article-cta:hover::before {
    left: 100%;
}

.article-cta h3 {
    color: white;
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0 0 20px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.article-cta p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.15rem;
    line-height: 1.7;
    margin: 0 0 30px 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.article-cta .cta-btn-large {
    display: inline-block;
    background: white;
    color: #1e40af;
    padding: 16px 40px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1),
                0 2px 4px rgba(0, 0, 0, 0.06);
    position: relative;
    z-index: 1;
}

.article-cta .cta-btn-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15),
                0 4px 6px rgba(0, 0, 0, 0.1);
    background: #f8fafc;
}

.article-cta .cta-btn-large:active {
    transform: translateY(0);
}

/* Highlighted Info Boxes */
.info-box {
    background: linear-gradient(135deg, #e0f2fe 0%, #dbeafe 100%);
    border-left: 5px solid #0284c7;
    padding: 30px;
    margin: 40px 0;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.info-box h3,
.info-box h4 {
    color: #0c4a6e;
    margin-top: 0;
    margin-bottom: 20px;
}

.info-box p {
    color: #0c4a6e;
    margin-bottom: 15px;
}

.info-box ul {
    margin: 15px 0;
}

.info-box li {
    color: #0c4a6e;
}

/* Warning Box */
.warning-box {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-left: 5px solid #1d4ed8;
    padding: 30px;
    margin: 40px 0;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.warning-box h3,
.warning-box h4 {
    color: #1e3a8a;
    margin-top: 0;
    margin-bottom: 20px;
}

.warning-box p {
    color: #1e3a8a;
    margin-bottom: 15px;
}

.warning-box li {
    color: #1e3a8a;
}

/* Success/Highlight Box */
.highlight-box {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-left: 5px solid #0369a1;
    padding: 30px;
    margin: 40px 0;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.highlight-box h3,
.highlight-box h4 {
    color: #075985;
    margin-top: 0;
    margin-bottom: 20px;
}

.highlight-box p {
    color: #075985;
    margin-bottom: 15px;
}

.highlight-box li {
    color: #075985;
}

/* Process Box */
.process-box {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 35px;
    margin: 40px 0;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.process-box h4 {
    color: #1e293b;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.35rem;
}

.process-box p {
    margin-bottom: 20px;
    color: #1e293b;
}

.process-box li {
    color: #1e293b;
}

/* Timeline/Phase Box */
.timeline-box {
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
    color: white;
    padding: 35px;
    border-radius: 12px;
    margin: 40px 0;
    box-shadow: 0 10px 25px rgba(30, 64, 175, 0.3);
}

.timeline-box h3,
.timeline-box h4 {
    color: white;
    margin-top: 0;
    margin-bottom: 20px;
}

.timeline-box p,
.timeline-box li {
    color: white;
    opacity: 0.95;
}

/* Comparison Box */
.comparison-box {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-left: 5px solid #2563eb;
    padding: 30px;
    margin: 40px 0;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.comparison-box h3,
.comparison-box h4 {
    color: #1e40af;
    margin-top: 0;
    margin-bottom: 20px;
}

.comparison-box p {
    color: #1e40af;
    margin-bottom: 15px;
}

.comparison-box li {
    color: #1e40af;
}

/* Key Takeaway Box */
.key-takeaway {
    background: linear-gradient(135deg, #f0f9ff 0%, #dbeafe 100%);
    border-left: 5px solid #0284c7;
    padding: 30px;
    margin: 40px 0;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.key-takeaway h3,
.key-takeaway h4 {
    color: #0c4a6e;
    margin-top: 0;
    margin-bottom: 20px;
}

.key-takeaway p {
    color: #0c4a6e;
    margin-bottom: 15px;
}

.key-takeaway li {
    color: #0c4a6e;
}

/* Discovery Box */
.discovery-box {
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    border-left: 5px solid #0369a1;
    padding: 30px;
    margin: 40px 0;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.discovery-box h3,
.discovery-box h4 {
    color: #075985;
    margin-top: 0;
    margin-bottom: 20px;
}

.discovery-box p {
    color: #075985;
    margin-bottom: 15px;
}

.discovery-box li {
    color: #075985;
}

/* Evidence Box */
.evidence-box {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-left: 5px solid #1d4ed8;
    padding: 30px;
    margin: 40px 0;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.evidence-box h3,
.evidence-box h4 {
    color: #1e3a8a;
    margin-top: 0;
    margin-bottom: 20px;
}

.evidence-box p {
    color: #1e3a8a;
    margin-bottom: 15px;
}

.evidence-box li {
    color: #1e3a8a;
}

/* Blockquotes */
.article-body blockquote {
    border-left: 5px solid #3b82f6;
    padding: 25px 30px;
    margin: 35px 0;
    background: #f8fafc;
    border-radius: 8px;
    font-style: italic;
    color: #1e293b;
}

/* Related Articles Section */
.related-articles {
    margin-top: 80px;
    padding-top: 50px;
    border-top: 3px solid #e2e8f0;
}

.related-articles h3 {
    font-size: 1.75rem;
    color: white;
    margin-bottom: 30px;
    font-weight: 700;
}

.related-links {
    display: grid;
    gap: 20px;
}

.related-link {
    display: block;
    padding: 25px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.related-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    border-color: #3b82f6;
}

.related-link h4 {
    color: white;
    margin: 0 0 10px 0;
    font-size: 1.2rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.related-link:hover h4 {
    color: #3b82f6;
}

.related-link p {
    color: white;
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
}

/* Article Navigation */
.article-navigation {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid #e2e8f0;
}

.nav-link-article {
    flex: 1;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid #e2e8f0;
}

.nav-link-article:hover {
    background: white;
    border-color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.nav-link-article span {
    display: block;
    font-size: 0.85rem;
    color: white;
    margin-bottom: 8px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.nav-link-article strong {
    display: block;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
}

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

    .article-hero .subtitle {
        font-size: 1.1rem;
    }

    .article-hero-content {
        padding: 60px 30px;
    }

    .article-container {
        padding: 0 25px 60px;
    }

    .article-body h2 {
        font-size: 1.65rem;
        margin-top: 45px;
    }

    .article-body h3 {
        font-size: 1.35rem;
        margin-top: 35px;
    }

    .article-body p {
        font-size: 1.05rem;
    }

    .article-meta-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .info-box,
    .warning-box,
    .highlight-box,
    .process-box,
    .timeline-box {
        padding: 25px 20px;
        margin: 30px 0;
    }

    .article-navigation {
        flex-direction: column;
    }
}

/* Print Styles */
@media print {
    .article-hero,
    .article-navigation,
    .related-articles,
    header,
    footer {
        display: none;
    }

    .article-container {
        max-width: 100%;
        padding: 0;
    }

    .article-body {
        font-size: 12pt;
    }
}
