/* ============================================
   eBridge Financial - Complete Blog Post Styles
   ============================================
   
   This file includes:
   1. Post Hero Section (featured image, title, meta)
   2. Content Styling (headings, lists, tables, blockquotes)
   3. Post Footer (tags, share buttons)
   4. Related Posts Grid
   
   ============================================ */

/* ===========================================
   CSS CUSTOM PROPERTIES (Brand Colors)
   =========================================== */
:root {
    /* Primary Brand Colors - from existing theme */
    --eb-text: #131f2f;
    --eb-text-light: #4a5568;
    --eb-text-muted: #718096;
    
    /* Accent - the vibrant orange */
    --eb-orange: #EB752F;
    --eb-orange-light: #f59e5e;
    --eb-orange-dark: #d45d1a;
    --eb-orange-glow: rgba(235, 117, 47, 0.15);
    --eb-orange-subtle: rgba(235, 117, 47, 0.08);
    
    /* Complementary teal for contrast */
    --eb-teal: #0b4f6c;
    --eb-teal-light: #1a6b8a;
    --eb-teal-glow: rgba(11, 79, 108, 0.1);
    
    /* Backgrounds */
    --eb-bg: #ffffff;
    --eb-bg-warm: #fffaf6;
    --eb-bg-cool: #f7fafc;
    --eb-bg-page: #ECEFF1;
    
    /* Borders */
    --eb-border: #e2e8f0;
    --eb-border-dark: #cbd5e0;
    
    /* Shadows */
    --eb-shadow-sm: 0 1px 3px rgba(19, 31, 47, 0.06), 0 1px 2px rgba(19, 31, 47, 0.04);
    --eb-shadow-md: 0 4px 6px rgba(19, 31, 47, 0.07), 0 2px 4px rgba(19, 31, 47, 0.04);
    --eb-shadow-lg: 0 10px 25px rgba(19, 31, 47, 0.08), 0 6px 12px rgba(19, 31, 47, 0.05);
    --eb-shadow-xl: 0 20px 40px rgba(19, 31, 47, 0.12);
    --eb-shadow-orange: 0 4px 14px rgba(235, 117, 47, 0.25);
    
    /* Typography - matching existing theme */
    --eb-font: 'Manrope', sans-serif;
    
    /* Spacing */
    --eb-space-xs: 0.5rem;
    --eb-space-sm: 1rem;
    --eb-space-md: 1.5rem;
    --eb-space-lg: 2rem;
    --eb-space-xl: 3rem;
    --eb-space-2xl: 4rem;
}


/* ===========================================
   POST HERO SECTION
   =========================================== */
.eb-post-hero {
    position: relative;
    padding: 80px 0 60px;
 background: linear-gradient(135deg, #1471b9 0%, #1e3a5f 50%, var(--eb-text) 100%);
    overflow: hidden;
}

.eb-post-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23EB752F' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

/* Desktop: Hide the hero background image */
.eb-post-hero--has-image {
    background: linear-gradient(135deg, #1471b9 0%, #1e3a5f 50%, var(--eb-text) 100%);
}

.eb-post-hero__image {
    display: none;
}

.eb-post-hero__content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

/* Category badges */
.eb-post-hero__categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.eb-post-category {
    display: inline-block;
    padding: 6px 16px;
    background: linear-gradient(135deg, var(--eb-orange) 0%, var(--eb-orange-dark) 100%);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: var(--eb-shadow-orange);
}

.eb-post-category:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(235, 117, 47, 0.4);
}

/* Post title */
.eb-post-hero__title {
    font-family: var(--eb-font);
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    color: #fff;
    margin: 0 0 40px;
}

/* Author meta */
.eb-post-hero__meta {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-top: 30px;
}

.eb-post-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.eb-post-author__avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 3px solid var(--eb-orange);
    object-fit: cover;
}

.eb-post-author__info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.eb-post-author__name {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}

.eb-post-author__date {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    gap: 12px;
}

.eb-post-reading-time {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.eb-post-reading-time::before {
    content: '•';
    color: var(--eb-orange);
}


/* ===========================================
   POST CONTENT SECTION
   =========================================== */
.eb-post-content-section {
    background: var(--eb-bg);
    padding: 60px 0;
}

/* Desktop Featured Image - shown on desktop, hidden on mobile */
.eb-post-featured {
    display: block;
    max-width: 800px;
    margin: 0 auto 50px;
}

.eb-post-featured img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: var(--eb-shadow-lg);
}


/* ===========================================
   CONTENT CONTAINER - Encapsulated Styles
   =========================================== */
.ebridge-post-content {
    font-family: var(--eb-font);
    font-size: 17px;
    font-weight: 400;
    line-height: 1.75;
    color: var(--eb-text);
    max-width: 800px;
    min-width: 480px;
    margin: 0 auto;
}

.ebridge-post-content * {
    box-sizing: border-box;
}


/* ===========================================
   HEADINGS
   =========================================== */
.ebridge-post-content h1,
.ebridge-post-content h2,
.ebridge-post-content h3,
.ebridge-post-content h4,
.ebridge-post-content h5,
.ebridge-post-content h6 {
    font-family: var(--eb-font);
    font-weight: 800;
    color: var(--eb-text);
    line-height: 1.36;
    margin-top: var(--eb-space-xl);
    margin-bottom: 0.845em;
}

.ebridge-post-content > h1:first-child,
.ebridge-post-content > h2:first-child,
.ebridge-post-content > h3:first-child {
    margin-top: 0;
}

.ebridge-post-content h1 { font-size: 42px; }
.ebridge-post-content h2 { font-size: 32px; }
.ebridge-post-content h3 { font-size: 26px; }
.ebridge-post-content h4 { font-size: 22px; }
.ebridge-post-content h5 { font-size: 18px; }
.ebridge-post-content h6 {
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--eb-text-light);
}


/* ===========================================
   PARAGRAPHS
   =========================================== */
.ebridge-post-content p {
    margin: 0 0 1.69em 0;
}

.ebridge-post-content > p:first-of-type {
    font-size: 19px;
    color: var(--eb-text-light);
    line-height: 1.7;
}


/* ===========================================
   LINKS
   =========================================== */
.ebridge-post-content a {
    color: var(--eb-orange);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: all 0.25s ease;
}

.ebridge-post-content a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--eb-orange);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.ebridge-post-content a:hover {
    color: var(--eb-orange-dark);
}

.ebridge-post-content a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}


/* ===========================================
   UNORDERED LISTS - Exceptional Design
   =========================================== */
.ebridge-post-content ul {
    margin: 0 0 1.69em 0;
    padding: 0;
    list-style: none;
}

.ebridge-post-content ul li {
    position: relative;
    padding: 12px 0 12px 36px;
    border-bottom: 1px solid var(--eb-border);
}

.ebridge-post-content ul li:last-child {
    border-bottom: none;
}

.ebridge-post-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 18px;
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, var(--eb-orange) 0%, var(--eb-orange-light) 100%);
    border-radius: 4px;
    transform: rotate(45deg);
    box-shadow: 0 2px 8px rgba(235, 117, 47, 0.3);
}

.ebridge-post-content ul li::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 23px;
    width: 8px;
    height: 8px;
    background: var(--eb-bg);
    border-radius: 2px;
    transform: rotate(45deg);
}

/* Nested UL */
.ebridge-post-content ul ul {
    margin: 12px 0 0 0;
    padding-left: 20px;
    border-left: 3px solid var(--eb-orange-glow);
}

.ebridge-post-content ul ul li {
    padding: 8px 0 8px 28px;
    border-bottom: 1px dashed var(--eb-border);
}

.ebridge-post-content ul ul li::before {
    width: 10px;
    height: 10px;
    background: var(--eb-orange);
    border-radius: 50%;
    transform: none;
    top: 16px;
    box-shadow: 0 0 0 4px var(--eb-orange-glow);
}

.ebridge-post-content ul ul li::after {
    display: none;
}

/* Third level */
.ebridge-post-content ul ul ul li::before {
    width: 8px;
    height: 8px;
    background: transparent;
    border: 2px solid var(--eb-orange);
    box-shadow: none;
}


/* ===========================================
   ORDERED LISTS - Exceptional Design
   =========================================== */
.ebridge-post-content ol {
    margin: 0 0 1.69em 0;
    padding: 0;
    list-style: none;
    counter-reset: fancy-counter;
}

.ebridge-post-content ol li {
    position: relative;
    padding: 20px 20px 20px 80px;
    counter-increment: fancy-counter;
    border-left: 3px solid transparent;
    background: linear-gradient(var(--eb-bg), var(--eb-bg)) padding-box,
                linear-gradient(180deg, var(--eb-orange) 0%, var(--eb-orange-light) 100%) border-box;
    margin-bottom: 8px;
    border-radius: 0 12px 12px 0;
    transition: all 0.3s ease;
}

.ebridge-post-content ol li:hover {
    background: linear-gradient(var(--eb-bg-warm), var(--eb-bg-warm)) padding-box,
                linear-gradient(180deg, var(--eb-orange) 0%, var(--eb-orange-light) 100%) border-box;
    transform: translateX(4px);
}

.ebridge-post-content ol li::before {
    content: counter(fancy-counter, decimal-leading-zero);
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 28px;
    font-weight: 800;
    color: var(--eb-orange);
    line-height: 1;
    font-family: var(--eb-font);
}

/* Nested OL */
.ebridge-post-content ol ol {
    margin: 16px 0 0 0;
    counter-reset: nested-counter;
}

.ebridge-post-content ol ol li {
    padding: 12px 16px 12px 50px;
    counter-increment: nested-counter;
    background: var(--eb-bg-cool);
    border-left: 2px solid var(--eb-border-dark);
    border-radius: 0 8px 8px 0;
}

.ebridge-post-content ol ol li:hover {
    background: var(--eb-bg-warm);
}

.ebridge-post-content ol ol li::before {
    content: counter(nested-counter, lower-alpha) '.';
    font-size: 16px;
    font-weight: 700;
    color: var(--eb-teal);
    left: 16px;
}


/* ===========================================
   BLOCKQUOTES - Exceptional Design
   =========================================== */
.ebridge-post-content blockquote {
    position: relative;
    margin: var(--eb-space-xl) 0;
    padding: 40px 40px 40px 50px;
    background: linear-gradient(135deg, var(--eb-bg-warm) 0%, #fff 50%, var(--eb-bg-cool) 100%);
    border: none;
    border-radius: 20px;
    box-shadow: 
        var(--eb-shadow-lg),
        inset 0 0 0 1px rgba(235, 117, 47, 0.1);
    overflow: visible;
}

.ebridge-post-content blockquote::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 30px;
    font-size: 120px;
    font-family: Georgia, serif;
    font-weight: 700;
    line-height: 1;
    color: var(--eb-orange);
    opacity: 0.2;
    pointer-events: none;
}
.ebridge-post-content blockquote::before {
    display: none;
}
.ebridge-post-content blockquote::after {
    content: '';
    position: absolute;
    left: 0;
    top: 30px;
    bottom: 30px;
    width: 5px;
    background: linear-gradient(180deg, var(--eb-orange) 0%, var(--eb-orange-light) 50%, var(--eb-orange) 100%);
    border-radius: 0 3px 3px 0;
}

.ebridge-post-content blockquote p {
    font-size: 20px;
    font-weight: 500;
    font-style: italic;
    color: var(--eb-text);
    line-height: 1.6;
    margin: 0 0 var(--eb-space-sm) 0;
    position: relative;
    z-index: 1;
}

.ebridge-post-content blockquote p:last-child {
    margin-bottom: 0;
}

.ebridge-post-content blockquote cite,
.ebridge-post-content blockquote footer {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: var(--eb-space-md);
    font-size: 15px;
    font-style: normal;
    font-weight: 600;
    color: var(--eb-orange-dark);
}

.ebridge-post-content blockquote cite::before,
.ebridge-post-content blockquote footer::before {
    content: '';
    width: 30px;
    height: 2px;
    background: var(--eb-orange);
}


/* ===========================================
   TABLES - Exceptional Design
   =========================================== */
.ebridge-post-content table {
    width: 100%;
    min-width: 480px;
    margin: var(--eb-space-xl) 0;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 15px;
    background: var(--eb-bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--eb-shadow-lg);
}


.ebridge-post-content thead {
    background: linear-gradient(135deg, var(--eb-text) 0%, #2d3748 100%);
    position: relative;
}

.ebridge-post-content th {
    padding: 20px 24px;
    text-align: left;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #fff;
    position: relative;
}
.ebridge-post-content th strong,
.ebridge-post-content th b {
    color: #fff;
}

.ebridge-post-content thead::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--eb-orange), var(--eb-orange-light), var(--eb-orange));
}

.ebridge-post-content td {
    padding: 18px 24px;
    border-bottom: 1px solid var(--eb-border);
    vertical-align: top;
    transition: all 0.2s ease;
}

.ebridge-post-content tbody tr:last-child td {
    border-bottom: none;
}

.ebridge-post-content tbody tr:nth-child(odd) {
    background: linear-gradient(90deg, var(--eb-bg) 0%, var(--eb-bg-cool) 100%);
}

.ebridge-post-content tbody tr:nth-child(even) {
    background: var(--eb-bg);
}

.ebridge-post-content tbody tr {
    position: relative;
    transition: all 0.25s ease;
}

.ebridge-post-content tbody tr:hover {
    background: var(--eb-bg-warm);
    transform: scale(1.01);
    box-shadow: 0 4px 20px rgba(235, 117, 47, 0.12);
    z-index: 1;
}

.ebridge-post-content tbody tr:hover td:first-child {
    position: relative;
}

.ebridge-post-content tbody tr:hover td:first-child::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--eb-orange);
}

.ebridge-post-content td:first-child {
    font-weight: 600;
    color: var(--eb-text);
}

/* Responsive table wrapper */
.ebridge-post-content .table-wrapper {
    overflow-x: auto;
    margin: var(--eb-space-xl) 0;
    border-radius: 16px;
    box-shadow: var(--eb-shadow-lg);
}

.ebridge-post-content .table-wrapper table {
    margin: 0;
    box-shadow: none;
    border-radius: 0;
}


/* ===========================================
   IMAGES & FIGURES
   =========================================== */
.ebridge-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--eb-shadow-md);
}

.ebridge-post-content figure {
    margin: var(--eb-space-xl) 0;
}

.ebridge-post-content figcaption {
    margin-top: var(--eb-space-sm);
    font-size: 14px;
    color: var(--eb-text-muted);
    text-align: center;
    font-style: italic;
}


/* ===========================================
   HORIZONTAL RULES
   =========================================== */
.ebridge-post-content hr {
    border: none;
    height: 1px;
    background: var(--eb-border);
    margin: var(--eb-space-xl) 0;
    position: relative;
}

.ebridge-post-content hr::before {
    content: '• • •';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: var(--eb-bg);
    padding: 0 20px;
    color: var(--eb-orange);
    font-size: 14px;
    letter-spacing: 8px;
}


/* ===========================================
   EMPHASIS & SEMANTIC ELEMENTS
   =========================================== */
.ebridge-post-content strong,
.ebridge-post-content b {
    font-weight: 700;
    color: var(--eb-text);
}

.ebridge-post-content em,
.ebridge-post-content i {
    font-style: italic;
}

.ebridge-post-content mark {
    background: linear-gradient(120deg, var(--eb-orange-glow) 0%, var(--eb-orange-subtle) 100%);
    padding: 2px 6px;
    border-radius: 4px;
}

.ebridge-post-content del {
    text-decoration: line-through;
    color: var(--eb-text-muted);
}

.ebridge-post-content abbr[title] {
    text-decoration: underline dotted var(--eb-orange);
    cursor: help;
}


/* ===========================================
   CODE
   =========================================== */
.ebridge-post-content code {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.9em;
    background: var(--eb-bg-cool);
    padding: 3px 8px;
    border-radius: 6px;
    border: 1px solid var(--eb-border);
    color: var(--eb-orange-dark);
}

.ebridge-post-content pre {
    margin: var(--eb-space-lg) 0;
    padding: var(--eb-space-md);
    background: var(--eb-text);
    border-radius: 12px;
    overflow-x: auto;
    box-shadow: var(--eb-shadow-md);
}

.ebridge-post-content pre code {
    background: transparent;
    border: none;
    padding: 0;
    color: #e2e8f0;
    font-size: 14px;
}


/* ===========================================
   DEFINITION LISTS
   =========================================== */
.ebridge-post-content dl {
    margin: var(--eb-space-lg) 0;
}

.ebridge-post-content dt {
    font-weight: 800;
    font-size: 18px;
    color: var(--eb-text);
    margin-top: var(--eb-space-md);
    padding-bottom: 8px;
    border-bottom: 2px solid var(--eb-orange);
    display: inline-block;
}

.ebridge-post-content dt:first-child {
    margin-top: 0;
}

.ebridge-post-content dd {
    margin: var(--eb-space-sm) 0 0 0;
    padding-left: var(--eb-space-md);
    border-left: 3px solid var(--eb-border);
    color: var(--eb-text-light);
}


/* ===========================================
   CALLOUT BOXES
   =========================================== */
.ebridge-post-content .callout {
    position: relative;
    margin: var(--eb-space-xl) 0;
    padding: 24px 24px 24px 70px;
    border-radius: 12px;
    border: 1px solid;
}

.ebridge-post-content .callout::before {
    position: absolute;
    left: 24px;
    top: 24px;
    font-size: 24px;
    line-height: 1;
}

.ebridge-post-content .callout p:last-child {
    margin-bottom: 0;
}

.ebridge-post-content .callout-info {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-color: #2196f3;
}
.ebridge-post-content .callout-info::before { content: 'ℹ️'; }

.ebridge-post-content .callout-tip {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-color: #4caf50;
}
.ebridge-post-content .callout-tip::before { content: '💡'; }

.ebridge-post-content .callout-warning {
    background: linear-gradient(135deg, var(--eb-bg-warm) 0%, #ffe0b2 100%);
    border-color: var(--eb-orange);
}
.ebridge-post-content .callout-warning::before { content: '⚠️'; }

.ebridge-post-content .callout-important {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    border-color: #f44336;
}
.ebridge-post-content .callout-important::before { content: '🚨'; }


/* ===========================================
   BUTTONS IN CONTENT
   =========================================== */
.ebridge-post-content .btn {
    display: inline-block;
    padding: 14px 28px;
    font-family: var(--eb-font);
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    border-radius: 10px;
    border: 1px solid var(--eb-orange);
    transition: all 0.25s ease;
    cursor: pointer;
}

.ebridge-post-content .btn::after {
    display: none;
}

.ebridge-post-content .btn-primary {
    background: linear-gradient(135deg, var(--eb-orange) 0%, var(--eb-orange-dark) 100%);
    color: #fff;
    box-shadow: var(--eb-shadow-orange);
}

.ebridge-post-content .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(235, 117, 47, 0.4);
    color: #fff;
}

.ebridge-post-content .btn-secondary {
    background: var(--eb-bg);
    color: var(--eb-orange);
}

.ebridge-post-content .btn-secondary:hover {
    background: var(--eb-bg-warm);
    color: var(--eb-orange-dark);
}


/* ===========================================
   POST FOOTER SECTION (Tags & Share)
   =========================================== */
.eb-post-footer-section {
    background: var(--eb-bg);
    padding: 0 0 60px;
}

.eb-post-footer {
    max-width: 800px;
    margin: 0 auto;
    padding-top: 40px;
    border-top: 1px solid var(--eb-border);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
}

/* Tags */
.eb-post-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.eb-post-tags__label {
    font-size: 14px;
    font-weight: 600;
    color: var(--eb-text-light);
}

.eb-post-tag {
    display: inline-block;
    padding: 6px 14px;
    background: var(--eb-bg-cool);
    color: var(--eb-text);
    font-size: 13px;
    font-weight: 500;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.25s ease;
    border: 1px solid var(--eb-border);
}

.eb-post-tag:hover {
    background: var(--eb-orange);
    color: #fff;
    border-color: var(--eb-orange);
}

/* Share Buttons */
.eb-post-share {
    display: flex;
    align-items: center;
    gap: 15px;
}

.eb-post-share__label {
    font-size: 14px;
    font-weight: 600;
    color: var(--eb-text-light);
}

.eb-post-share__buttons {
    display: flex;
    gap: 8px;
}

.eb-post-share__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--eb-bg-cool);
    color: var(--eb-text);
    text-decoration: none;
    transition: all 0.25s ease;
    border: 1px solid var(--eb-border);
}

.eb-post-share__btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--eb-shadow-md);
}

.eb-post-share__btn--facebook:hover {
    background: #1877f2;
    color: #fff;
    border-color: #1877f2;
}

.eb-post-share__btn--twitter:hover {
    background: #000;
    color: #fff;
    border-color: #000;
}

.eb-post-share__btn--linkedin:hover {
    background: #0a66c2;
    color: #fff;
    border-color: #0a66c2;
}

.eb-post-share__btn--email:hover {
    background: var(--eb-orange);
    color: #fff;
    border-color: var(--eb-orange);
}


/* ===========================================
   RELATED POSTS SECTION
   =========================================== */
.eb-related-posts {
    background: var(--eb-bg-page);
    padding: 80px 0;
}

.eb-related-posts__title {
    font-family: var(--eb-font);
    font-size: 32px;
    font-weight: 800;
    color: var(--eb-text);
    text-align: center;
    margin: 0 0 70px;
}

.eb-related-posts__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding-top: 30px;
}

/* Post Card */
.eb-post-card {
    background: var(--eb-bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--eb-shadow-md);
    transition: all 0.3s ease;
}

.eb-post-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--eb-shadow-xl);
}

.eb-post-card__image {
    display: block;
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.eb-post-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.eb-post-card:hover .eb-post-card__image img {
    transform: scale(1.05);
}

.eb-post-card__content {
    padding: 24px;
}

.eb-post-card__categories {
    margin-bottom: 12px;
}

.eb-post-card__category {
    display: inline-block;
    padding: 4px 12px;
    background: linear-gradient(135deg, var(--eb-orange) 0%, var(--eb-orange-dark) 100%);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.25s ease;
}

.eb-post-card__category:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(235, 117, 47, 0.35);
}

.eb-post-card__title {
    font-family: var(--eb-font);
    font-size: 18px;
    font-weight: 800;
    line-height: 1.4;
    margin: 0;
}

.eb-post-card__title a {
    color: var(--eb-text);
    text-decoration: none;
    transition: color 0.25s ease;
}

.eb-post-card__title a:hover {
    color: var(--eb-orange);
}

.eb-related-posts__action {
    text-align: center;
    margin-top: 50px;
}

.eb-related-posts__action .btn {
    display: inline-block;
    padding: 14px 32px;
    background: transparent;
    color: var(--eb-text);
    font-family: var(--eb-font);
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    border: 2px solid var(--eb-text);
    border-radius: 10px;
    transition: all 0.25s ease;
}

.eb-related-posts__action .btn:hover {
    background: var(--eb-text);
    color: #fff;
}


/* ===========================================
   RESPONSIVE STYLES
   =========================================== */
@media (max-width: 1023px) {
    .eb-related-posts__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px), screen and (max-width: 812px) and (orientation: landscape) {
    /* Hero - show featured image as background on mobile */
    .eb-post-hero--has-image {
        padding: 0;
        min-height: 400px;
        display: flex;
        align-items: flex-end;
        background: transparent;
    }
    
    .eb-post-hero--has-image::before {
        display: none;
    }
    
    .eb-post-hero__image {
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 0;
    }
    
    .eb-post-hero__image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .eb-post-hero__overlay {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(
            to bottom,
            rgba(19, 31, 47, 0.2) 0%,
            rgba(19, 31, 47, 0.5) 50%,
            rgba(19, 31, 47, 0.9) 100%
        );
    }
    
    .eb-post-hero--has-image .eb-post-hero__content {
        padding: 60px 0 40px;
    }
    
    /* Hide separate featured image on mobile */
    .eb-post-featured {
        display: none;
    }
    
    .eb-post-hero {
        padding: 60px 0 40px;
    }
    
    .eb-post-hero__title {
        font-size: 32px;
        margin-bottom: 30px;
    }
    
    .eb-post-author__avatar {
        width: 48px;
        height: 48px;
    }
    
    /* Content */
    .eb-post-content-section {
        padding: 40px 0;
    }
    
    .ebridge-post-content {
        font-size: 16px;
    }
    
    .ebridge-post-content h1 { font-size: 32px; }
    .ebridge-post-content h2 { font-size: 26px; }
    .ebridge-post-content h3 { font-size: 22px; }
    
    .ebridge-post-content blockquote {
        padding: 30px 24px 30px 35px;
        margin: var(--eb-space-lg) 0;
    }
    
    .ebridge-post-content blockquote::before {
        font-size: 80px;
        top: -10px;
        left: 15px;
    }
    
    .ebridge-post-content blockquote p {
        font-size: 18px;
    }
    
    .ebridge-post-content ol li {
        padding: 16px 16px 16px 60px;
    }
    
    .ebridge-post-content ol li::before {
        font-size: 22px;
        left: 12px;
    }
    
    .ebridge-post-content table {
        font-size: 14px;
    }
    
    .ebridge-post-content th,
    .ebridge-post-content td {
        padding: 14px 16px;
    }
    
    /* Footer */
    .eb-post-footer {
        flex-direction: column;
    }
    
    .eb-post-share {
        flex-direction: column;
        align-items: flex-start;
    }
    
    /* Related Posts */
    .eb-related-posts {
        padding: 60px 0;
    }
    
    .eb-related-posts__title {
        font-size: 26px;
        margin-bottom: 40px;
    }
    
    .eb-related-posts__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .eb-post-card__content {
        padding: 20px;
    }
}


/* ===========================================
   PRINT STYLES
   =========================================== */
@media print {
    .eb-post-hero {
        background: none !important;
        color: #000;
        padding: 20px 0;
    }
    
    .eb-post-hero__image,
    .eb-post-hero__overlay,
    .eb-post-share,
    .eb-related-posts {
        display: none !important;
    }
    
    .eb-post-hero__title {
        color: #000;
        font-size: 28pt;
    }
    
    .ebridge-post-content {
        max-width: 100%;
        font-size: 12pt;
    }
    
    .ebridge-post-content a {
        color: #000;
    }
    
    .ebridge-post-content a::after {
        display: none;
    }
    
    .ebridge-post-content blockquote {
        border-left: 4px solid #000;
        background: none;
        box-shadow: none;
    }
    
    .ebridge-post-content table {
        box-shadow: none;
    }
    
    .ebridge-post-content th,
    .ebridge-post-content td {
        border: 1px solid #000;
    }
}


/* ===========================================
   FOOTER OVERRIDE
   =========================================== */
.footer {
    background-color: #718ea5;
}