.blog-code-block {
    background: #23272e;
    color: #e6e6e6;
    font-family: 'Fira Mono', 'Consolas', 'Menlo', 'Monaco', monospace;
    font-size: 1rem;
    border-radius: 8px;
    padding: 1em 1.2em;
    margin: 1.2em 0;
    overflow-x: auto;
    box-shadow: 0 2px 8px rgba(40,16,60,0.10);
    line-height: 1.6;
    word-break: break-word;
}
.blog-post-thumbnail {
    position: relative;
    min-height: 3.5em;
    overflow: hidden;
    text-overflow: ellipsis;
}
.read-more-btn {
    display: block;
    margin: 1.2em auto 0 auto;
    background: #fff;
    color: #764ba2;
    border: none;
    border-radius: 999px;
    padding: 0.5em 1.5em;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(118,75,162,0.10);
    transition: background 0.2s, color 0.2s;
}
.read-more-btn:hover {
    background: #764ba2;
    color: #fff;
}

/* Modal Styles */
#blog-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}
#blog-modal.active, #blog-modal.fade-out {
    display: flex;
    pointer-events: auto;
    opacity: 1;
    transition: opacity 0.3s;
}
#blog-modal.active {
    opacity: 1;
}
#blog-modal.fade-out {
    opacity: 0;
    pointer-events: none;
}
.blog-modal-backdrop {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(40, 16, 60, 0.55);
    backdrop-filter: blur(2px);
    z-index: 1;
    animation: fadeInBackdrop 0.3s;
}
.blog-modal-content {
    position: relative;
    z-index: 2;
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    color: #fff;
    border-radius: 18px;
    box-shadow: 0 16px 48px rgba(118, 75, 162, 0.22);
    width: 70vw;
    max-width: 1000px;
    min-width: 400px;
    max-height: 80vh;
    padding: 2.5rem 2rem 2rem 2rem;
    overflow-y: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE 10+ */
}
.blog-modal-content::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}
.blog-modal-content {
    animation: slideUpModal 0.4s cubic-bezier(.42,0,.58,1);
}
@media screen and (max-width: 900px) {
    .blog-modal-content {
        width: 90vw;
        min-width: unset;
        max-width: 98vw;
        height: 80vh;
        max-height: 80vh;
        padding: 1.2rem 0.7rem 1rem 0.7rem;
    }
}
.blog-modal-header {
    margin-bottom: 1.2rem;
}
.blog-modal-header h2 {
    font-size: 1.7rem;
    font-weight: 700;
    margin: 0.2rem 0 0.5rem 0;
    color: #fff;
}
.blog-modal-close {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    z-index: 3;
    opacity: 0.8;
    transition: opacity 0.2s;
}
.blog-modal-close:hover {
    opacity: 1;
}
.modal-open {
    overflow: hidden !important;
}
@keyframes fadeInModal {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes fadeInBackdrop {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes slideUpModal {
    from { transform: translateY(60px) scale(0.98); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}
/* Blog-specific styles for iBoxen developer blog */

.blog-hero {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    color: white;
    padding: 140px 0 60px;
    min-height: 40vh;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 24px rgba(118, 75, 162, 0.08);
}

.blog-hero .hero-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.blog-hero .hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: bold;
    letter-spacing: 1px;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.5s;
}

.blog-hero .hero-content p {
    font-size: 1.3rem;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.7s;
}

.blog-posts {
    background: #f8f9fa;
    padding: 60px 0 40px;
    min-height: 0;
    display: flex;
    flex-direction: column;
    flex: 1 0 auto;
    justify-content: flex-start;
}
/* Go to Bottom Button Styles */
#go-bottom-btn {
    position: fixed;
    right: 32px;
    bottom: 32px;
    z-index: 100;
    background: #764ba2;
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 0.8em 1.6em;
    font-size: 1.1rem;
    box-shadow: 0 4px 16px rgba(118, 75, 162, 0.18);
    cursor: pointer;
    opacity: 0.92;
    transition: opacity 0.2s, transform 0.2s;
}
#go-bottom-btn:hover {
    opacity: 1;
    transform: translateY(2px) scale(1.04);
}

.blog-post-block {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    color: white;
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(118, 75, 162, 0.10);
    margin-bottom: 2.5rem;
    padding: 2.5rem 2rem 2rem 2rem;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
}

.blog-post-block:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 16px 40px rgba(118, 75, 162, 0.18);
}

.blog-post-header {
    margin-bottom: 1.2rem;
}

.blog-post-week {
    display: inline-block;
    background: rgba(255,255,255,0.13);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.3em 1em;
    border-radius: 999px;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}

.blog-post-header h2 {
    font-size: 1.7rem;
    font-weight: 700;
    margin: 0.2rem 0 0.5rem 0;
    color: #fff;
}

.blog-post-body p {
    font-size: 1.15rem;
    color: #f3eaff;
    line-height: 1.7;
    margin: 0;
}

@media screen and (max-width: 768px) {
    .blog-hero .hero-content h1 {
        font-size: 2.1rem;
    }
    .blog-post-block {
        padding: 1.5rem 1rem 1rem 1rem;
    }
}

@media screen and (max-width: 480px) {
    .blog-hero {
        padding: 60px 0 30px;
    }
    .blog-post-block {
        padding: 1rem 0.5rem 0.5rem 0.5rem;
    }
}
