/* Individual Blog Post Styles */

body {
    background:
        radial-gradient(circle at 15% 15%, rgba(30, 41, 59, 0.05), transparent 35%),
        radial-gradient(circle at 85% 25%, rgba(30, 41, 59, 0.04), transparent 35%),
        radial-gradient(circle at 50% 70%, rgba(212, 175, 55, 0.04), transparent 35%),
        radial-gradient(circle at 25% 85%, rgba(30, 41, 59, 0.04), transparent 35%),
        linear-gradient(135deg, #f8fafc 0%, #f1f5f9 25%, #f8fafc 50%, #ffffff 75%, #f8fafc 100%);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        repeating-linear-gradient(45deg, transparent, transparent 60px, rgba(30, 41, 59, 0.01) 60px, rgba(30, 41, 59, 0.01) 120px),
        repeating-linear-gradient(-45deg, transparent, transparent 60px, rgba(30, 41, 59, 0.01) 60px, rgba(30, 41, 59, 0.01) 120px);
    pointer-events: none;
    z-index: 0;
    animation: backgroundShift 60s linear infinite;
}

@keyframes backgroundShift {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(50px, 50px) rotate(2deg); }
}

.post-main {
    position: relative;
    z-index: 1;
    margin-top: 70px;
}

/* Breadcrumb */
.breadcrumb {
    background: transparent;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(226, 232, 240, 0.3);
}

.breadcrumb a {
    color: #1e3a5f;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #142a47;
}

.breadcrumb span {
    color: #64748b;
}

/* Post Layout (Two Column Grid) */
.post-layout {
    padding: 3rem 0;
}

.post-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
    align-items: start;
}

/* Main Article Content */
.post-content {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.35) 100%);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-top: 2px solid rgba(255, 255, 255, 0.8);
    border-left: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow:
        0 8px 32px rgba(31, 38, 135, 0.15),
        0 2px 8px rgba(31, 38, 135, 0.1),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.9),
        inset -1px 0 0 0 rgba(255, 255, 255, 0.4);
    position: relative;
}

.post-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, transparent 50%);
    pointer-events: none;
    border-radius: 24px;
    z-index: 0;
}

.post-content > * {
    position: relative;
    z-index: 1;
}

.post-header {
    margin-bottom: 2rem;
}

.post-category {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(59, 130, 246, 0.1);
    color: #1e3a5f;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
}

.post-header h1 {
    font-size: 2.75rem;
    font-weight: 700;
    color: #1e3a5f;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    color: #64748b;
    font-size: 0.95rem;
}

.post-date,
.post-reading-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.post-featured-image {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 2.5rem;
}

/* Post Body Content */
.post-body {
    color: #334155;
    font-size: 1.125rem;
    line-height: 1.8;
}

.post-body h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1e3a5f;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
}

.post-body h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e3a5f;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.post-body p {
    margin-bottom: 1.5rem;
}

.post-body ul,
.post-body ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.post-body li {
    margin-bottom: 0.75rem;
    line-height: 1.8;
}

.post-body strong {
    color: #1e3a5f;
    font-weight: 600;
}

.post-body a {
    color: #1e3a5f;
    text-decoration: underline;
}

.post-body a:hover {
    color: #142a47;
}

.post-body blockquote {
    border-left: 4px solid #1e3a5f;
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #475569;
}

/* Author Bio */
.author-bio {
    margin-top: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.25) 0%, rgba(59, 130, 246, 0.15) 100%);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-top: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow:
        0 8px 24px rgba(59, 130, 246, 0.15),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.7);
}

.author-info h3 {
    font-size: 1.5rem;
    color: #1e3a5f;
    margin-bottom: 0.75rem;
}

.author-info p {
    color: #475569;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.contact-author-btn {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background: #1e3a5f;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.contact-author-btn:hover {
    background: #142a47;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Sticky Sidebar */
.post-sidebar {
    position: relative;
}

.sidebar-sticky {
    position: sticky;
    top: 90px;
}

.sidebar-cta {
    background: linear-gradient(135deg, #142a47 0%, #1e3a5f 100%);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-top: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow:
        0 8px 24px rgba(59, 130, 246, 0.3),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.3);
    text-align: center;
}

.sidebar-cta h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.sidebar-cta > p {
    font-size: 0.95rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.sidebar-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #9a7b3c;
    font-size: 1.25rem;
    font-weight: 700;
    text-decoration: none;
    margin-bottom: 1rem;
}

.sidebar-phone:hover {
    color: #b8982f;
}

.sidebar-cta-btn {
    display: block;
    width: 100%;
    padding: 1rem;
    background: #9a7b3c;
    color: #1e3a5f;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.sidebar-cta-btn:hover {
    background: #b8982f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.4);
}

.sidebar-location {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.sidebar-experience {
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.2);
    font-size: 0.95rem;
}

.sidebar-experience strong {
    color: #9a7b3c;
    font-size: 1.25rem;
    display: block;
    margin-bottom: 0.25rem;
}

/* Related Articles Section */
.related-articles {
    background: transparent;
    padding: 4rem 0;
    border-top: 2px solid rgba(226, 232, 240, 0.3);
}

.related-articles h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1e3a5f;
    text-align: center;
    margin-bottom: 3rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.related-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.35) 100%);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-top: 2px solid rgba(255, 255, 255, 0.8);
    border-left: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 24px;
    overflow: hidden;
    box-shadow:
        0 8px 32px rgba(31, 38, 135, 0.15),
        0 2px 8px rgba(31, 38, 135, 0.1),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.9),
        inset -1px 0 0 0 rgba(255, 255, 255, 0.4);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
}

.related-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.related-card > * {
    position: relative;
    z-index: 1;
}

.related-card:hover {
    transform: translateY(-10px) scale(1.02);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.65) 0%, rgba(255, 255, 255, 0.5) 100%);
    box-shadow:
        0 20px 60px rgba(59, 130, 246, 0.25),
        0 8px 16px rgba(59, 130, 246, 0.15),
        inset 0 1px 0 0 rgba(255, 255, 255, 1),
        inset -1px 0 0 0 rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-top: 2px solid rgba(255, 255, 255, 0.9);
}

.related-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.related-content {
    padding: 1.5rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.3) 100%);
}

.related-category {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    background: rgba(59, 130, 246, 0.1);
    color: #1e3a5f;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}

.related-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.related-content h3 a {
    color: #1e3a5f;
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-content h3 a:hover {
    color: #1e3a5f;
}

.related-meta {
    color: #94a3b8;
    font-size: 0.85rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .post-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .sidebar-sticky {
        position: static;
    }

    .post-sidebar {
        order: -1;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }
}

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

    .post-featured-image {
        height: 250px;
    }

    .post-body {
        font-size: 1rem;
    }

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

    .post-body h3 {
        font-size: 1.25rem;
    }

    .sidebar-cta {
        padding: 1.5rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
