/* ============================================
   ServiceLink SA Blog System CSS
   Modern, responsive, accessible
   ============================================ */

/* CSS Variables */
:root {
    /* Colors */
    --color-accent: #D32F2F;
    --color-accent-dark: #B71C1C;
    --color-accent-light: #FFEBEE;
    --color-surface: #FFFFFF;
    --color-background: #F8F9FA;
    --color-text: #212529;
    --color-text-muted: #6C757D;
    --color-border: #E9ECEF;
    --color-success: #28A745;
    --color-warning: #FFC107;
    --color-info: #17A2B8;
    
    /* Typography */
    --font-family-base: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-family-headings: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    
    /* Border radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 1px 3px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1), 0 4px 12px rgba(0,0,0,0.075);
    
    /* Transitions */
    --transition-base: all 0.2s ease;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Container */
    --container-max-width: 1280px;
    --container-padding: 1rem;
}

/* ============================================
   Enhanced Typography & Content Styling
   ============================================ */

/* Content container */
.post-content {
    font-family: var(--font-family-base);
    line-height: 1.7;
    color: var(--color-text);
}

/* Headings */
.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    font-family: var(--font-family-headings);
    font-weight: 600;
    line-height: 1.3;
    margin-top: 2em;
    margin-bottom: 0.75em;
    color: var(--color-text);
}

.post-content h2 {
    font-size: 2rem;
    border-bottom: 2px solid var(--color-border);
    padding-bottom: 0.5rem;
}

.post-content h2:first-child {
    margin-top: 0;
}

.post-content h3 {
    font-size: 1.5rem;
}

.post-content h4 {
    font-size: 1.25rem;
}

/* Paragraphs */
.post-content p {
    margin-bottom: 1.5rem;
}

/* Lists */
.post-content ul,
.post-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.post-content li {
    margin-bottom: 0.5rem;
}

.post-content li > ul,
.post-content li > ol {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Links */
.post-content a {
    color: var(--color-accent);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
    transition: var(--transition-base);
}

.post-content a:hover {
    color: var(--color-accent-dark);
    text-decoration-thickness: 2px;
}

/* Blockquotes */
.post-content blockquote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    background: var(--color-background);
    border-left: 4px solid var(--color-accent);
    font-style: italic;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.post-content blockquote p:last-child {
    margin-bottom: 0;
}

/* Tables */
.post-content table {
    width: 100%;
    margin: 2rem 0;
    border-collapse: collapse;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.post-content th {
    background: var(--color-accent-light);
    color: var(--color-accent-dark);
    font-weight: 600;
    padding: 1rem;
    text-align: left;
}

.post-content td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--color-border);
}

.post-content tr:last-child td {
    border-bottom: none;
}

.post-content tr:hover td {
    background: rgba(211, 47, 47, 0.02);
}

/* Images */
.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.post-content figure {
    margin: 2rem 0;
}

.post-content figcaption {
    text-align: center;
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-top: 0.5rem;
}

/* Image aspect ratio classes */
.aspect-ratio-16-9 {
    aspect-ratio: 16/9;
    object-fit: cover;
}

.aspect-ratio-4-3 {
    aspect-ratio: 4/3;
    object-fit: cover;
}

.aspect-ratio-2-5 {
    aspect-ratio: 2.5;
    object-fit: cover;
}

.aspect-ratio-1-1 {
    aspect-ratio: 1/1;
    object-fit: cover;
}

/* Code */
.post-content code {
    background: var(--color-background);
    padding: 0.2em 0.4em;
    border-radius: var(--radius-sm);
    font-size: 0.875em;
    font-family: 'Courier New', Courier, monospace;
}

.post-content pre {
    background: var(--color-text);
    color: white;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    overflow-x: auto;
    margin: 2rem 0;
}

.post-content pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}

/* ============================================
   Special Content Patterns
   ============================================ */

/* Service Cards in Content */
.post-content .service-card,
.post-content .info-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin: 2rem 0;
    box-shadow: var(--shadow-md);
}

.post-content .service-card h3,
.post-content .info-card h3 {
    margin-top: 0;
    color: var(--color-accent);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Offer Banners */
.post-content .special-offer-banner,
.post-content .cost-saving-tip,
.post-content .promo-banner {
    background: linear-gradient(135deg, var(--color-accent-light) 0%, #FFF3E0 100%);
    border-left: 4px solid var(--color-accent);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin: 2rem 0;
    position: relative;
}

.post-content .special-offer-banner p,
.post-content .cost-saving-tip p,
.post-content .promo-banner p {
    margin-bottom: 0;
}

.post-content .special-offer-banner strong {
    color: var(--color-accent-dark);
}

/* Tips & Notes */
.post-content .pro-tip,
.post-content .note,
.post-content .warning {
    padding: 1.25rem;
    border-radius: var(--radius-md);
    margin: 1.5rem 0;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.post-content .pro-tip {
    background: #E3F2FD;
    border-left: 4px solid #1976D2;
}

.post-content .note {
    background: #FFF3E0;
    border-left: 4px solid #F57C00;
}

.post-content .warning {
    background: #FFEBEE;
    border-left: 4px solid #D32F2F;
}

.post-content .pro-tip i,
.post-content .note i,
.post-content .warning i {
    font-size: 1.25rem;
    flex-shrink: 0;
}

/* Checklists */
.post-content .checklist {
    list-style: none;
    padding-left: 0;
}

.post-content .checklist li {
    padding-left: 2rem;
    position: relative;
    margin-bottom: 0.75rem;
}

.post-content .checklist li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-success);
    font-weight: bold;
}

/* Image captions */
.post-content .image-caption {
    text-align: center;
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-top: -1rem;
    margin-bottom: 2rem;
}

/* ============================================
   Blog Cards & Archive Grid
   ============================================ */

.blog-card {
    transition: var(--transition-smooth);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.blog-card .card-media {
    position: relative;
    overflow: hidden;
}

.blog-card .card-media img {
    transition: transform 0.5s ease;
}

.blog-card:hover .card-media img {
    transform: scale(1.05);
}

/* Line clamp utilities */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================
   Filter Bar & Navigation
   ============================================ */

.sticky-top {
    position: sticky;
    top: 0;
    z-index: 100;
}

.archive-filter-bar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--color-border);
}

.form-select,
.form-input {
    padding: 0.5rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    transition: var(--transition-base);
}

.form-select:focus,
.form-input:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.1);
}

/* ============================================
   Table of Contents
   ============================================ */

.toc-wrapper {
    background: var(--color-background);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin: 2rem 0;
}

.toc-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--color-accent);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toc-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.toc-list li {
    margin-bottom: 0.5rem;
    border-bottom: 1px dashed var(--color-border);
    padding-bottom: 0.5rem;
}

.toc-list li:last-child {
    border-bottom: none;
}

.toc-list a {
    color: var(--color-text-muted);
    text-decoration: none;
    display: block;
    padding: 0.25rem 0;
    transition: var(--transition-base);
}

.toc-list a:hover {
    color: var(--color-accent);
    padding-left: 0.5rem;
}

.toc-list .toc-h2 {
    font-weight: 500;
    margin-left: 0;
}

.toc-list .toc-h3 {
    font-size: 0.95rem;
    margin-left: 1rem;
}

.toc-list .toc-h4 {
    font-size: 0.9rem;
    margin-left: 2rem;
}

/* ============================================
   Comments Section
   ============================================ */

.comments-area {
    margin-top: 2rem;
}

.comment-list {
    list-style: none;
    padding-left: 0;
}

.comment {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.comment-author {
    font-weight: 600;
}

.comment-metadata {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

/* ============================================
   Animations
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.5s ease-out;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.pulse {
    animation: pulse 2s infinite;
}

/* ============================================
   Responsive Design
   ============================================ */

/* Tablet */
@media (min-width: 768px) {
    :root {
        --container-padding: 2rem;
    }
    
    .post-content h2 {
        font-size: 2.25rem;
    }
    
    .post-content h3 {
        font-size: 1.75rem;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    :root {
        --container-padding: 2.5rem;
    }
    
    .post-content {
        font-size: 1.1rem;
    }
    
    .post-content h2 {
        font-size: 2.5rem;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --color-surface: #1E1E1E;
        --color-background: #121212;
        --color-text: #E9ECEF;
        --color-text-muted: #ADB5BD;
        --color-border: #2D2D2D;
    }
    
    .post-content a {
        color: #FF6B6B;
    }
    
    .post-content a:hover {
        color: #FF8A8A;
    }
}

/* Print styles */
@media print {
    .site-header,
    .site-footer,
    .post-sidebar,
    .post-navigation,
    .comments-area {
        display: none !important;
    }
    
    .post-content {
        font-size: 12pt;
    }
    
    .post-content a {
        text-decoration: none;
        color: black;
    }
}

/* ============================================
   Accessibility
   ============================================ */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-accent);
    color: white;
    padding: 0.5rem 1rem;
    z-index: 9999;
    text-decoration: none;
}

.skip-link:focus {
    top: 0;
}

/* ====================================================================================
   Professional Blog Styles for ServiceLink SA - Aluminium Windows Cost Guide
   Inspired by premium blog design with enhanced readability and visual appeal
   ==================================================================================== */

:root {
    --primary: #D32F2F;        /* ServiceLink accent red */
    --primary-dark: #B71C1C;
    --primary-light: #FFEBEE;
    --secondary: #2563eb;       /* Accent blue from example */
    --accent: #f59e0b;          /* Gold accent */
    --light: #f8fafc;
    --dark: #1e293b;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --success: #10b981;
    --error: #ef4444;
    --warning: #f59e0b;
    --text: #334155;
    --text-light: #64748b;
    --heading-font: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --body-font: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --border-radius: 10px;
    --border-radius-sm: 6px;
}

body {
    font-family: var(--body-font);
    font-size: 1.08rem;
    line-height: 1.7;
    color: var(--text);
    background: var(--light);
    margin: 0;
    padding: 0;
}

/* Main container - matches example but with our branding */
.blog-container {
    max-width: 1000px;
    margin: 30px auto 60px auto;
    padding: 0 20px;
}

.post-card {
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.post-card:hover {
    box-shadow: var(--shadow-lg);
}

.post-content {
    padding: 40px;
}

@media (max-width: 768px) {
    .post-content {
        padding: 25px;
    }
}

/* Typography - Premium and readable */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    color: var(--dark);
    line-height: 1.3;
    margin-top: 0;
    font-weight: 700;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@media (max-width: 768px) {
    h1 {
        font-size: 1.8rem;
    }
}

h2 {
    font-size: 1.8rem;
    margin: 2.5rem 0 1.2rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--primary-light);
    position: relative;
}

h2:after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary);
}

h3 {
    font-size: 1.3rem;
    margin: 1.8rem 0 0.8rem 0;
    color: var(--primary-dark);
}

h4 {
    font-size: 1.1rem;
    margin: 1.5rem 0 0.5rem 0;
    color: var(--secondary);
}

p {
    margin-bottom: 1.3rem;
}

/* Article Meta - Exactly matching the example style */
.article-meta {
    font-family: var(--body-font);
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 500;
    margin-bottom: 2rem;
    border-left: 4px solid var(--primary);
    padding-left: 16px;
    letter-spacing: 0.02em;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    opacity: 0.9;
    transition: opacity 0.3s ease;
    background: var(--gray-100);
    padding: 12px 16px;
    border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
}

.article-meta:hover {
    opacity: 1;
}

.article-meta time {
    font-weight: 600;
    color: var(--primary);
}

.article-meta .meta-separator {
    color: var(--gray-300);
    font-weight: 300;
}

@media (max-width: 480px) {
    .article-meta {
        font-size: 0.78rem;
        padding: 10px 12px;
        gap: 6px;
    }
}

/* Modern Accordion Table of Contents - Exactly matching example */
.accordion-toc {
    margin: 1.8rem 0 2.5rem 0;
    border-radius: var(--border-radius);
    background: var(--gray-100);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    overflow: hidden;
}

.accordion-toc summary {
    cursor: pointer;
    padding: 16px 22px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    background: #f0f4ff;
    transition: background 0.2s ease;
    list-style: none;
}

.accordion-toc summary::-webkit-details-marker {
    display: none;
}

.accordion-toc summary:before {
    content: '📑';
    margin-right: 10px;
    font-size: 1.2rem;
}

.accordion-toc[open] summary {
    border-bottom: 1px solid var(--gray-300);
    background: #e8f0fe;
}

.accordion-toc nav {
    padding: 20px 22px 16px 32px;
}

.accordion-toc nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    columns: 2;
}

@media (max-width: 640px) {
    .accordion-toc nav ul {
        columns: 1;
    }
}

.accordion-toc nav li {
    margin-bottom: 10px;
    break-inside: avoid;
}

.accordion-toc nav a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    display: inline-block;
    padding: 4px 0;
    border-bottom: 1px dotted transparent;
}

.accordion-toc nav a:hover {
    color: var(--primary);
    border-bottom-color: var(--primary-light);
    transform: translateX(5px);
}

/* Enhanced Table Styling - Matches example with improvements */
.table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 28px 0 32px 0;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.cost-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.95rem;
    border: 2px solid var(--primary);
    border-radius: var(--border-radius);
    background: white;
}

.cost-table th,
.cost-table td {
    border: 1px solid var(--gray-200);
    padding: 14px 18px;
    text-align: left;
    vertical-align: top;
}

.cost-table th {
    background-color: var(--primary);
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--primary-dark);
}

.cost-table tr:nth-child(even) {
    background-color: var(--gray-100);
}

.cost-table tr:hover {
    background-color: var(--primary-light);
    transition: background 0.2s ease;
}

.cost-table td:first-child {
    font-weight: 600;
    color: var(--dark);
}

@media (max-width: 700px) {
    .cost-table {
        min-width: 650px;
    }
}

/* Pro Tip, Warning, Note Boxes */
.pro-tip, .warning, .note, .success-box {
    padding: 20px 24px;
    margin: 28px 0;
    border-radius: var(--border-radius);
    position: relative;
    border-left: 6px solid;
    box-shadow: var(--shadow-sm);
}

.pro-tip {
    background: #f0f9f0;
    border-left-color: var(--success);
}

.warning {
    background: #fff8e6;
    border-left-color: var(--warning);
}

.note {
    background: #e8f0fe;
    border-left-color: var(--secondary);
}

.success-box {
    background: #e6f7e6;
    border-left-color: var(--success);
}

.pro-tip:before, .warning:before, .note:before, .success-box:before {
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 12px;
    font-size: 1.2rem;
}

.pro-tip:before {
    content: '\f0eb'; /* lightbulb */
    color: var(--success);
}

.warning:before {
    content: '\f071'; /* exclamation triangle */
    color: var(--warning);
}

.note:before {
    content: '\f05a'; /* info circle */
    color: var(--secondary);
}

.success-box:before {
    content: '\f00c'; /* check circle */
    color: var(--success);
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.feature-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
    padding: 24px 20px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.feature-card i {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.feature-card h4 {
    margin: 10px 0 8px 0;
    color: var(--dark);
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0;
}

/* CTA Box */
.cta-box {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 35px 30px;
    border-radius: var(--border-radius);
    margin: 40px 0 20px;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.cta-box h3 {
    color: white;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.cta-box p {
    color: rgba(255,255,255,0.9);
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: white;
    color: var(--primary);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.btn-primary:hover {
    background: var(--gray-100);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-outline:hover {
    background: white;
    color: var(--primary);
    transform: translateY(-2px);
}

/* Tags */
.post-tags {
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid var(--gray-200);
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.tag {
    display: inline-block;
    padding: 6px 14px;
    background: var(--gray-100);
    color: var(--text);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid var(--gray-200);
}

.tag:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Images */
.post-image {
    margin: 30px 0;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.post-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.post-image:hover img {
    transform: scale(1.02);
}

.image-caption {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 8px;
    font-style: italic;
}

/* Price highlight boxes */
.price-highlight {
    background: linear-gradient(135deg, var(--primary-light) 0%, #fff 100%);
    border: 2px dashed var(--primary);
    border-radius: var(--border-radius);
    padding: 25px;
    margin: 30px 0;
    text-align: center;
}

.price-highlight .price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
}

.price-highlight .label {
    font-size: 1.1rem;
    color: var(--dark);
    margin-top: 5px;
}

/* External links section */
.external-resources {
    background: var(--gray-100);
    padding: 20px;
    border-radius: var(--border-radius);
    margin: 30px 0 20px;
    font-size: 0.9rem;
    border: 1px solid var(--gray-200);
}

.external-resources ul {
    margin: 10px 0 0 0;
    padding-left: 20px;
}

.external-resources a {
    color: var(--primary);
    text-decoration: none;
}

.external-resources a:hover {
    text-decoration: underline;
}

/* Breadcrumbs */
.breadcrumbs {
    font-size: 0.85rem;
    margin-bottom: 20px;
    color: var(--text-light);
}

.breadcrumbs a {
    color: var(--text-light);
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: var(--primary);
}

.breadcrumbs .separator {
    margin: 0 8px;
    color: var(--gray-300);
}

/* Category badge */
.category-badge {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
}

/* Responsive utilities */
@media (max-width: 768px) {
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.2rem; }
    .feature-grid { grid-template-columns: 1fr; }
    .cta-box { padding: 25px 20px; }
    .btn { padding: 12px 20px; }
}

/* ===== ENHANCED TABLE STYLING - ALTERNATING BLUE BACKGROUNDS ===== */

/* Base table styles */
table,
.wp-block-table,
.entry-content table,
.post-content table,
.cost-table,
.comparison-table,
.pricing-table,
.slsa-comparison-table,
.slsa-pricing-table {
    border-collapse: collapse;
    width: 100%;
    margin: 2rem 0;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 2px solid #1e3a8a; /* Visible blue border on all sides */
}

/* Table headers - RED as you prefer */
table th,
.wp-block-table th,
.entry-content th,
.post-content th,
.cost-table th,
.comparison-table th,
.pricing-table th,
.slsa-comparison-table th,
.slsa-pricing-table th {
    background-color: #b91c1c !important; /* Rich red */
    color: #ffffff !important;
    font-weight: 600;
    padding: 1rem;
    text-align: left;
    font-size: 1rem;
    border: 1px solid #7f1d1d; /* Darker red border */
}

/* Table cells - alternating blue shades, NO WHITE */
table td,
.wp-block-table td,
.entry-content td,
.post-content td,
.cost-table td,
.comparison-table td,
.pricing-table td,
.slsa-comparison-table td,
.slsa-pricing-table td {
    padding: 1rem;
    border: 1px solid #2563eb; /* Visible blue borders on all sides */
    color: #ffffff !important; /* White text for contrast on blue */
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Alternating row colors - two shades of blue */
table tr:nth-child(odd) td,
.wp-block-table tr:nth-child(odd) td,
.entry-content tr:nth-child(odd) td,
.post-content tr:nth-child(odd) td,
.cost-table tr:nth-child(odd) td {
    background-color: #2563eb !important; /* Medium blue */
}

table tr:nth-child(even) td,
.wp-block-table tr:nth-child(even) td,
.entry-content tr:nth-child(even) td,
.post-content tr:nth-child(even) td,
.cost-table tr:nth-child(even) td {
    background-color: #1d4ed8 !important; /* Darker blue */
}

/* Hover effect - DON'T change background, just enhance text */
table tr:hover td,
.wp-block-table tr:hover td,
.entry-content tr:hover td,
.post-content tr:hover td {
    background-color: inherit !important; /* Keep the alternating colors */
    transform: scale(1.01); /* Subtle scale */
    transition: transform 0.2s ease;
    box-shadow: inset 0 0 0 2px #fbbf24; /* Yellow highlight border */
}

/* Slightly brighten text on hover */
table tr:hover td,
.wp-block-table tr:hover td,
.entry-content tr:hover td,
.post-content tr:hover td {
    color: #ffffff !important;
    font-weight: 500;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5); /* Glow effect */
}

/* Ensure links in tables are visible (yellow for contrast on blue) */
table a,
.wp-block-table a,
.entry-content table a,
.post-content table a {
    color: #fbbf24 !important; /* Bright yellow */
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

table a:hover,
.wp-block-table a:hover {
    color: #f59e0b !important; /* Darker yellow on hover */
}

/* Price highlighting in tables - make it pop with yellow */
table td.price,
table .price,
table .amount,
table .cost {
    font-weight: 700;
    color: #fbbf24 !important; /* Bright yellow */
    font-size: 1.1rem;
}

/* Special styling for comparison tables */
.comparison-table td:first-child,
.slsa-comparison-table td:first-child {
    font-weight: 700;
    background-color: #1e40af !important; /* Different blue for first column */
    border-right: 2px solid #fbbf24;
}

/* Table captions */
table caption,
.wp-block-table caption {
    caption-side: bottom;
    padding: 0.75rem;
    color: #1e293b !important; /* Dark color for contrast on white bg */
    font-style: italic;
    font-size: 0.9rem;
    text-align: center;
    background: transparent;
}

/* Responsive tables */
.table-responsive,
.wp-block-table.is-style-stripes {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 2rem 0;
    border-radius: 0.75rem;
}

/* Table wrapper */
.table-wrapper {
    overflow-x: auto;
    margin: 2rem 0;
    border-radius: 0.75rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Featured/popular table rows - highlight in gold */
table tr.popular,
table .featured-row {
    position: relative;
}

table tr.popular td,
table .featured-row td {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    border-left: 4px solid #fbbf24 !important;
    border-right: 4px solid #fbbf24 !important;
}

/* Table footers */
table tfoot td,
table tfoot th {
    background-color: #1e3a8a !important; /* Dark blue */
    color: #ffffff !important;
    font-weight: 600;
    border-top: 2px solid #fbbf24;
}