/* Blog Post Modal Styles */

.blog-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 100000;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    animation: fadeInOverlay 0.3s ease;
}

.blog-modal-overlay.active {
    display: block;
}

@keyframes fadeInOverlay {
    from { opacity: 0; }
    to { opacity: 1; }
}

.blog-modal {
    max-width: 820px;
    margin: 40px auto;
    padding: 0 20px 40px;
    animation: slideUpModal 0.35s ease;
}

@keyframes slideUpModal {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.blog-modal-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: #fff;
    border: none;
    border-radius: 50%;
    font-size: 28px;
    color: #333;
    cursor: pointer;
    position: sticky;
    top: 16px;
    margin-left: auto;
    margin-bottom: 12px;
    z-index: 10;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
    transition: transform 0.2s, background 0.2s;
    line-height: 1;
}

.blog-modal-close:hover {
    transform: scale(1.1);
    background: #f0f0f0;
}

/* Breadcrumbs */
.breadcrumbs {
    padding: 0 0 20px;
    font-size: 14px;
    color: #ccc;
}

.breadcrumbs a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumbs a:hover {
    color: #fff;
    opacity: 1;
}

.breadcrumbs span {
    margin: 0 6px;
    color: rgba(255,255,255,0.5);
}

.breadcrumbs .current {
    color: rgba(255,255,255,0.7);
    margin: 0;
}

/* Article Card */
.blog-post-article {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.12);
    overflow: hidden;
    padding: 40px 44px 50px;
}

.blog-post-article h1 {
    font-size: 28px;
    font-weight: 800;
    color: #1a1a2e;
    line-height: 1.35;
    margin-bottom: 28px;
    padding: 0;
    text-align: center;
}

.blog-post-featured-img {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 32px;
}

.blog-post-featured-img img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 440px;
}

/* Content */
.blog-post-content {
    font-size: 16px;
    color: #333;
    line-height: 1.85;
}

.blog-post-content h2 {
    font-size: 21px;
    font-weight: 700;
    color: #1a1a2e;
    margin-top: 32px;
    margin-bottom: 14px;
    padding: 0;
}

.blog-post-content h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    margin-top: 24px;
    margin-bottom: 10px;
    padding: 0;
}

.blog-post-content p {
    margin-bottom: 18px;
    line-height: 1.85;
}

.blog-post-content ul,
.blog-post-content ol {
    margin: 12px 0 20px 24px;
    padding: 0;
}

.blog-post-content li {
    margin-bottom: 8px;
    line-height: 1.7;
    list-style: disc;
}

.blog-post-content strong {
    font-weight: 700;
    color: #1a1a2e;
}

.blog-post-content blockquote {
    border-left: 4px solid #2563eb;
    margin: 24px 0;
    padding: 16px 24px;
    background: #f0f4ff;
    border-radius: 0 10px 10px 0;
    font-style: italic;
    color: #444;
}

/* Responsive */
@media (max-width: 768px) {
    .blog-post-article {
        padding: 24px 20px 32px;
    }

    .blog-post-article h1 {
        font-size: 22px;
    }

    .blog-post-content h2 {
        font-size: 18px;
    }

    .blog-modal {
        margin: 20px auto;
        padding: 0 12px 20px;
    }
}

body.blog-modal-open {
    overflow: hidden;
}
