/* Blog Post Specific Styles */
.blog-post-container {
    padding: 100px 0 50px 0; /* Add padding to account for fixed nav */
}

.blog-post {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(26, 26, 46, 0.5);
    padding: 2rem 3rem;
    border-radius: 15px;
    border: 1px solid rgba(0, 255, 136, 0.2);
}

.blog-header {
    text-align: center;
    margin-bottom: 3rem;
    border-bottom: 1px solid rgba(0, 255, 136, 0.2);
    padding-bottom: 2rem;
}

.blog-title {
    font-size: 2.5rem;
    color: #00ff88;
    margin-bottom: 0.5rem;
}

.blog-meta {
    font-size: 0.9rem;
    color: #ffffff;
    opacity: 0.7;
}

.blog-post section {
    margin-bottom: 2.5rem;
}

.blog-intro {
    font-size: 1.2rem;
    font-style: italic;
    line-height: 1.8;
    color: #ffffff;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.section-subtitle {
    font-size: 1.8rem;
    color: #00ff88;
    border-bottom: 2px solid #0099ff;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.blog-post p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
    color: #ffffff;
    opacity: 0.9;
}

.blog-image {
    margin: 2rem 0;
    text-align: center;
}

.blog-image img {
    max-width: 100%;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.blog-image img:hover {
    transform: scale(1.02);
}

.image-caption {
    font-size: 0.9rem;
    font-style: italic;
    margin-top: 0.5rem;
    opacity: 0.7;
}

.blog-video {
    margin: 2rem 0;
    text-align: center;
}

.blog-video video {
    max-width: 100%;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Code Snippet Styling */
pre {
    background: #0d1117; /* Dark background similar to GitHub */
    color: #c9d1d9;
    padding: 1rem;
    border-radius: 10px;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin: 1.5rem 0;
}

code.language-cisco {
    color: #79c0ff; /* Cisco-like blue for keywords */
}

/* Image Lightbox Modal Styles */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3000;
    padding: 2rem;
    cursor: pointer;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s 0.3s, opacity 0.3s ease;
}

.lightbox-overlay.visible {
    visibility: visible;
    opacity: 1;
    transition: visibility 0s, opacity 0.3s ease;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
}

.lightbox-content img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Scales the image to fit without distortion */
}

/* Styles for side-by-side images */
.side-by-side-images {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    align-items: flex-start;
    margin: 2rem 0;
}

.side-by-side-images .blog-image {
    width: 48%;
    margin: 0;
}

/* Responsive styles for side-by-side images */
@media (max-width: 768px) {
    .side-by-side-images {
        flex-direction: column;
    }

    .side-by-side-images .blog-image {
        width: 100%;
    }
}