/* Blog Post Styling - Consistent formatting for all blog articles */
/* Uses the main site design system fonts: Fraunces (display) + Outfit (body) */

:root {
    --font-display: 'Fraunces', 'Bodoni Moda', serif;
    --font-serif-body: 'Outfit', 'Helvetica Neue', sans-serif;
}

/* Blog Post Container */
.blog-post {
    background: #fff;
    padding: 60px 0;
    min-height: calc(100vh - 200px);
}

.blog-post .container {
    max-width: 860px;
    display: block;
}

/* Post Header — spans full width */
.post-header {
    grid-column: 1 / -1;
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 40px;
    border-bottom: 2px solid #E0DCD6;
    position: relative;
}

.post-header::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary-color), transparent);
    border-radius: 2px;
}

.post-header h1 {
    font-family: var(--font-display);
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 22px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.5px;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.post-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    color: #666666;
    font-size: 0.95rem;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.post-meta i {
    color: var(--secondary-color);
}

/* Post Content */
.post-content {
    line-height: 1.8;
}

.post-content p {
    margin-bottom: 1.5rem;
    color: #333;
    font-size: 1.05rem;
}

.post-content p.lead {
    font-size: 1.25rem;
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 2rem;
    padding: 20px;
    background: #F6F8F5;
    border-left: 4px solid var(--secondary-color);
}

/* Headings */
.post-content h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.post-content h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
}

.post-content h4 {
    font-size: 1.1rem;
    color: #19253D;
    margin-top: 1.2rem;
    margin-bottom: 0.6rem;
}

/* Lists */
.post-content ul,
.post-content ol {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.post-content li {
    margin-bottom: 0.8rem;
    color: #333;
    line-height: 1.6;
}

.post-content li strong {
    color: var(--primary-color);
}

/* Emphasis */
.post-content strong {
    color: var(--primary-color);
    font-weight: 600;
}

.post-content em {
    color: var(--secondary-color);
    font-style: italic;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: #fff;
}

table th {
    background: var(--primary-color);
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

table td {
    padding: 15px;
    border: 1px solid #E0DCD6;
    color: #333;
}

table tr:nth-child(odd) {
    background: #F6F8F5;
}

table tr:hover {
    background: #EEE9E3;
}

/* Callout Boxes */
.callout {
    background: #F6F8F5;
    border-left: 4px solid var(--secondary-color);
    padding: 20px;
    margin: 2rem 0;
}

.callout strong {
    color: var(--primary-color);
}

/* CTA Section */
.post-cta {
    background: linear-gradient(135deg, rgba(25, 37, 61, 0.05), rgba(200, 168, 106, 0.05));
    border: 2px solid var(--secondary-color);
    padding: 40px;
    margin-top: 3rem;
    text-align: center;
    border-radius: 8px;
}

.post-cta h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.post-cta p {
    color: #666666;
    margin-bottom: 20px;
}

.post-cta .btn {
    display: inline-block;
    padding: 12px 30px;
    margin: 10px;
    border-radius: 5px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.post-cta .btn-primary {
    background: var(--primary-color);
    color: white;
}

.post-cta .btn-primary:hover {
    background: #0f1628;
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* Links in content */
.post-content a {
    color: var(--secondary-color);
    text-decoration: none;
    border-bottom: 2px solid var(--secondary-color);
    transition: color 0.3s ease;
}

.post-content a:hover {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* Code blocks (if needed) */
.post-content code {
    background: #F6F8F5;
    padding: 3px 8px;
    border-radius: 3px;
    color: var(--primary-color);
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

/* Blockquotes */
.post-content blockquote {
    margin: 2rem 0;
    padding: 20px;
    padding-left: 25px;
    border-left: 4px solid var(--secondary-color);
    background: #F6F8F5;
    color: #666666;
    font-style: italic;
}

/* Related Posts Navigation */
.post-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #E0DCD6;
}

.post-nav-item {
    flex: 1;
    margin: 0 15px;
    padding: 20px;
    background: #F6F8F5;
    border-radius: 5px;
    text-align: center;
    transition: all 0.3s ease;
}

.post-nav-item:hover {
    background: #E8DFD7;
    transform: translateY(-3px);
}

.post-nav-item a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
    border: none;
}

/* Author Bio */
.author-bio {
    background: #F6F8F5;
    padding: 25px;
    border-radius: 8px;
    margin-top: 3rem;
    display: flex;
    gap: 20px;
    align-items: center;
}

.author-bio-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--secondary-color);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.author-bio-content h4 {
    margin: 0 0 5px 0;
    color: var(--primary-color);
}

.author-bio-content p {
    margin: 0;
    font-size: 0.95rem;
    color: #666666;
}

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

    .post-content h2 {
        font-size: 1.5rem;
    }

    .post-meta {
        gap: 15px;
    }

    .post-cta {
        padding: 25px;
    }

    table {
        font-size: 0.9rem;
    }

    table th,
    table td {
        padding: 10px;
    }

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

    .post-nav-item {
        margin: 10px 0;
    }

    .author-bio {
        flex-direction: column;
        text-align: center;
    }

    .post-content p {
        font-size: 1rem;
    }

    .post-content p.lead {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .blog-post {
        padding: 40px 0;
    }

    .post-header {
        margin-bottom: 25px;
        padding-bottom: 20px;
    }

    .post-header h1 {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }

    .post-meta {
        flex-direction: column;
        gap: 10px;
        font-size: 0.85rem;
    }

    .post-content h2 {
        font-size: 1.3rem;
        margin-top: 1.5rem;
    }

    .post-content h3 {
        font-size: 1.1rem;
    }

    .post-content ul,
    .post-content ol {
        margin-left: 1rem;
    }

    .post-cta {
        padding: 20px;
        margin-top: 2rem;
    }

    .post-content p.lead {
        padding: 15px;
        font-size: 1rem;
    }
}

/* ==================== 
   PREMIUM BLOG STYLING
   ==================== */

/* Premium Blog Post Container */
.blog-post {
    padding: 80px 0;
    background: linear-gradient(180deg, #ffffff 0%, #f6f8f5 50%, #ffffff 100%);
}

/* Premium Typography */
.post-header h1 {
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.15;
    word-spacing: 9999px;
}

.post-content h2 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.5px;
    position: relative;
    padding-bottom: 16px;
    margin-bottom: 32px;
}

.post-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary-color), transparent);
    border-radius: 2px;
}

.post-content h3 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* Premium Meta Information */
.post-meta {
    gap: 40px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0.8;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.post-meta span:hover {
    opacity: 1;
    color: var(--secondary-color);
}

/* Premium Content */
.post-content p {
    line-height: 1.9;
    letter-spacing: 0.3px;
    font-size: 16px;
}

.post-content p.lead {
    font-family: var(--font-serif-body);
    font-size: 18px;
    line-height: 1.8;
    font-style: italic;
    border-left: 4px solid var(--secondary-color);
    padding-left: 24px;
    margin: 40px 0;
    color: var(--primary-color);
}

.post-content ul,
.post-content ol {
    margin-left: 24px;
    margin-bottom: 28px;
}

.post-content li {
    line-height: 1.9;
    margin-bottom: 12px;
}

/* Premium Lists */
.post-content ul li::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--secondary-color);
    border-radius: 50%;
    margin-right: 12px;
    margin-left: -18px;
}

/* Premium Table Styling */
table {
    border-collapse: separate;
    border-spacing: 0;
    margin: 40px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

table th {
    background: linear-gradient(135deg, var(--primary-color) 0%, #34495e 100%);
    color: white;
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 12px;
    padding: 18px 15px;
}

table td {
    padding: 18px 15px;
    border: 1px solid #E0DCD6;
}

table tr:nth-child(even) {
    background: rgba(246, 248, 245, 0.5);
}

table tr:hover td {
    background: rgba(200, 168, 106, 0.05);
}

/* Premium Callout */
.callout {
    background: linear-gradient(135deg, rgba(25, 37, 61, 0.04), rgba(200, 168, 106, 0.04));
    border-left: 5px solid var(--secondary-color);
    border-radius: 8px;
    padding: 28px;
    margin: 40px 0;
    letter-spacing: 0.3px;
}

/* Premium CTA Section */
.post-cta {
    background: linear-gradient(135deg, rgba(25, 37, 61, 0.06), rgba(200, 168, 106, 0.04));
    border: 2px solid var(--secondary-color);
    border-radius: 12px;
    padding: 60px 40px;
    margin-top: 60px;
    text-align: center;
    animation: floatUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.post-cta h3 {
    font-family: var(--font-display);
    font-size: 32px;
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.post-cta .btn {
    animation: pulse 1s ease-in-out 2s infinite;
}

.post-cta .btn:hover {
    animation: none;
}

/* Premium Links */
.post-content a {
    color: var(--secondary-color);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
}

.post-content a:hover {
    border-bottom-color: var(--secondary-color);
    color: var(--primary-color);
}

/* Premium Scrolling Animation */
@keyframes floatUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

/* Premium Author Bio */
.author-bio {
    background: linear-gradient(135deg, rgba(25, 37, 61, 0.04), rgba(200, 168, 106, 0.04));
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 32px;
    margin-top: 60px;
    backdrop-filter: blur(10px);
}

.author-bio-image {
    background: linear-gradient(135deg, var(--secondary-color), #d4b678);
    box-shadow: 0 12px 32px rgba(200, 168, 106, 0.25);
}

.author-bio-content h4 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 18px;
}

/* Premium Post Navigation */
.post-navigation {
    margin-top: 80px;
    padding-top: 40px;
    border-top: 2px solid #E0DCD6;
}

.post-nav-item {
    background: linear-gradient(135deg, rgba(25, 37, 61, 0.04), rgba(200, 168, 106, 0.04));
    border: 1px solid #E0DCD6;
    border-radius: 12px;
    padding: 28px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.post-nav-item:hover {
    border-color: var(--secondary-color);
    background: linear-gradient(135deg, rgba(25, 37, 61, 0.08), rgba(200, 168, 106, 0.08));
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(200, 168, 106, 0.15);
}

/* Premium Responsive */
@media (max-width: 768px) {
    .post-header h1 {
        font-size: 42px;
    }
    
    .post-meta {
        gap: 20px;
        font-size: 12px;
    }
    
    .post-cta {
        padding: 40px 24px;
    }
    
    .post-cta h3 {
        font-size: 24px;
    }
}

/* ==================== 
   FLOATING SIDEBAR CTA
   ==================== */

.floating-cta {
    position: absolute;
    left: 18px;
    top: 50vh;
    z-index: 900;
    width: 180px;
    background: linear-gradient(160deg, var(--primary-color) 0%, #2a3a5c 100%);
    border-radius: 14px;
    padding: 20px 16px;
    text-align: center;
    border: 1px solid rgba(200, 168, 106, 0.25);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
    will-change: top;
    transition: none;
}

.floating-cta h3 {
    font-family: var(--font-display, 'Fraunces', serif);
    font-size: 15px;
    color: #fff;
    margin: 0 0 8px;
    line-height: 1.3;
    font-weight: 700;
}

.floating-cta p {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.5;
    margin: 0 0 14px;
}

.floating-cta .btn-sidebar {
    display: block;
    width: 100%;
    padding: 10px 12px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--secondary-color), #b8945d);
    color: var(--primary-color);
    font-family: var(--font-primary, 'Outfit', sans-serif);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(200, 168, 106, 0.3);
}

.floating-cta .btn-sidebar:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(200, 168, 106, 0.4);
}

.floating-cta-phone {
    display: block;
    margin-top: 10px;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.45);
}

.floating-cta-phone a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
}

.floating-cta-phone a:hover {
    color: var(--secondary-color);
}

/* Hide floating CTA on small screens — too intrusive */
@media (max-width: 1200px) {
    .floating-cta {
        display: none;
    }
}

