/* Styling for den AI-genererte CTA-boksen */
.robust-cta-box {
    background-color: #f9f9f9;
    border: 1px solid #e2e8f0;
    border-left: 6px solid #0073aa;
    /* Markant-blå eller tema-farge */
    padding: 30px;
    margin: 40px 0;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.robust-cta-box h3 {
    margin-top: 0;
    color: #1a202c;
    font-size: 1.5rem;
}

.robust-cta-box p {
    color: #4a5568;
    line-height: 1.6;
}

/* Styling for tjenestelenker (Money Pages) */
.robust-commercial-link {
    color: #0073aa;
    font-weight: 600;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.robust-commercial-link:hover {
    color: #005177;
    text-decoration: none;
}

/* Styling for vanlige internlenker */
.robust-internal-link {
    border-bottom: 2px solid #cbd5e0;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s ease;
}

.robust-internal-link:hover {
    border-bottom-color: #0073aa;
}

/* --- Review Widget Styles --- */
.robust-reviews-container {
    font-family: system-ui, -apple-system, sans-serif;
    margin: 40px 0;
}

.robust-reviews-header {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.robust-rating-badge {
    background: #f0fdf4;
    color: #166534;
    padding: 6px 12px;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.robust-stars {
    color: #fbbf24;
}

.robust-reviews-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.robust-review-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.robust-review-text {
    font-style: italic;
    color: #4b5563;
    margin: 12px 0;
    line-height: 1.5;
}

.robust-review-author {
    font-size: 0.875rem;
    color: #9ca3af;
    display: flex;
    justify-content: space-between;
}

.robust-author-name {
    font-weight: 600;
    color: #1f2937;
}

/* Layout: Carousel (Horizontal Scroll) */
.robust-layout-carousel .robust-reviews-list {
    display: flex;
    overflow-x: auto;
    gap: 16px;
    padding-bottom: 16px;
}

.robust-layout-carousel .robust-review-card {
    min-width: 280px;
}

/* --- Article Vertical Rhythm & Typography --- */
body .robust-article-content {
    line-height: 1.8 !important;
    color: #334155 !important;
    font-size: 1.1rem !important;
}

body .robust-article-content h2,
body .robust-article-content h3,
body .robust-article-content h4 {
    color: #0f172a !important;
    font-weight: 700 !important;
    margin-top: 4rem !important;
    margin-bottom: 1.5rem !important;
    line-height: 1.3 !important;
}

body .robust-article-content h2 {
    font-size: 2.25rem !important;
    border-bottom: 2px solid #e2e8f0 !important;
    padding-bottom: 1rem !important;
}

body .robust-article-content h3 {
    font-size: 1.75rem !important;
}

body .robust-article-content p,
body .robust-article-content ul,
body .robust-article-content ol {
    margin-bottom: 2rem !important;
}

body .robust-article-content li {
    margin-bottom: 1rem !important;
}

body .robust-article-content img {
    margin: 4rem 0 !important;
    height: auto !important;
    border-radius: 12px !important;
    display: block !important;
    max-width: 100% !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1) !important;
}

/* Enhanced Table Styling */
body .robust-article-content table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin: 3.5rem 0 !important;
    font-size: 0.95rem !important;
    background: #fff !important;
    border: 1px solid #e2e8f0 !important;
}

body .robust-article-content th,
body .robust-article-content td {
    padding: 16px !important;
    border: 1px solid #e2e8f0 !important;
    text-align: left !important;
    line-height: 1.5 !important;
}

body .robust-article-content th {
    background-color: #f8fafc !important;
    font-weight: 700 !important;
    color: #1e293b !important;
}

/* Professional Blockquote Styling */
body .robust-article-content blockquote {
    margin: 4rem 0 !important;
    padding: 2rem 2.5rem !important;
    border-left: 6px solid #0073aa !important;
    background-color: #f8fbff !important;
    font-style: italic !important;
    font-size: 1.35rem !important;
    color: #334155 !important;
    border-radius: 0 12px 12px 0 !important;
}

/* --- Featured Snippet Styling --- */
/* Adaptive design: Uses transparent/neutral colors to blend with theme */
body .robust-article-content .featured-snippet-answer {
    background-color: #fdfdfd !important;
    /* Neutral off-white */
    border: 1px solid #e2e8f0 !important;
    /* Subtle gray border */
    border-left: 6px solid #e2e8f0 !important;
    /* Neutral accent */
    padding: 2.5rem !important;
    margin: 3.5rem 0 !important;
    border-radius: 8px !important;
    font-size: 1.25rem !important;
    line-height: 1.6 !important;
    color: #1e293b !important;
    position: relative !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05) !important;
}