.blog-container{
    width: 100dvw;
    height: 100dvh;
    position: relative;
}

.blog-container .blog-title, .blog-container .blog-description {
    position: absolute;
    z-index: 2;
    max-width: calc(59dvw - 2.89rem);
    color: white;
    text-shadow: 0 0 0.22rem rgba(0, 0, 0, 0.89);
    font-weight: 900;
    letter-spacing: 0.5px;
    animation: slideInFromLeft 0.66s ease-out;
    overflow: hidden;
    text-overflow: ellipsis;
}

.blog-container .blog-title {
    top: 2rem;
    left: 2rem;
    font-size: 2.6rem;
    animation-delay: 0.22s;
}

.blog-container .blog-title .home-page-redirect{
    text-decoration: none;
    font-size: 0.89rem;
    transition: color 0.3s ease;
}

.blog-container .blog-description {
    bottom: 2rem;
    left: 2rem;
    font-size: 1.4rem;
    animation-delay: 0.41s;
}

.blog-container .articles{
    width: 100%;
    height: 100dvh;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}

.blog-container .articles .article{
    width: 100%;
    height: 100dvh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    scroll-snap-align: start;
    scroll-snap-stop:always;
}

.blog-container .articles .article .article-content{
    position: absolute;
    top: 0;
    right: 0;
    width: 41%;
    height: 100%;
    max-width: 666px;
    background-color: rgba(0, 0, 0, 0.14);
    backdrop-filter: blur(0.89rem);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    animation: slideInFromRight 0.66s ease-out;
}

.blog-container .articles .article .article-content > * {
    max-width: 89%;
    margin: 0 5.5%;
}

.blog-container .articles .article .article-content h2 {
    font-size: 1.66rem;
    @media screen and (max-width: 768px) {
        font-size: 1.89rem;
    }
    font-weight: bold;
    animation: slideInFromRight 0.66s ease-out;
    overflow: hidden;
    text-overflow: ellipsis;
}

.blog-container .articles .article .article-content .article-date {
    margin-bottom: 2.2rem;
    font-size: 0.89rem;
    opacity: 0.89;
    animation: slideInFromRight 0.66s ease-out;
}

.blog-container .articles .article .article-content .article-excerpt {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.22rem;
    animation: slideInFromRight 0.66s ease-out;
    max-height: 50%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.blog-container .articles .article .article-content .read-more {
    display: inline-block;
    color: white;
    text-decoration: none;
    transition: all 0.41s ease;
    font-weight: bold;
    border-bottom: 1px solid transparent;
    animation: slideInFromRight 0.66s ease-out;
    align-self: flex-end;
    margin-right: 6.6%;
}

.blog-container .articles .article .article-content .read-more:hover {
    border-bottom: 1px solid white;
}

@keyframes slideInFromLeft {
    from {
        transform: translateX(-89px);
        opacity: 0;
        filter: blur(2px);
    }
    to {
        transform: translateX(0);
        opacity: 1;
        filter: blur(0);
    }
}

@keyframes slideInFromRight {
    from {
        transform: translateX(89px);
        opacity: 0;
        filter: blur(2px);
    }
    to {
        transform: translateX(0);
        opacity: 1;
        filter: blur(0);
    }
    
}

@keyframes slideOutToLeft {
    from {
        transform: translateX(0);
        opacity: 1;
        filter: blur(0);
    }
    to {
        transform: translateX(-89px);
        opacity: 0;
        filter: blur(2px);
    }
}

@keyframes slideOutToRight {
    from {
        transform: translateX(0);
        opacity: 1;
        filter: blur(0);
    }
    to {
        transform: translateX(189px);
        opacity: 0;
        filter: blur(14px);
    }
}

/* Animation classes for JavaScript control */
.slide-out-left {
    animation: slideOutToLeft 0.41s ease-out forwards !important;
    animation-delay: 0.22s !important;
}

.slide-out-right {
    animation: slideOutToRight 0.41s ease-out forwards !important;
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
    .blog-container .blog-title, .blog-container .blog-description {
        max-width: calc(100dvw - 3rem);
    }

    .blog-container .blog-title {
        font-size: 2.2rem;
        top: 1.5rem;
        left: 1.5rem;
    }

    .blog-container .blog-description {
        font-size: 0.89rem;
        bottom: 0.41rem;
        left: 1.5rem;
    }

    .blog-container .articles .article .article-content {
        position: absolute;
        top: auto;
        bottom: 0;
        right: 0;
        left: 0;
        width: 100%;
        height: auto;
        min-height: 60dvh;
        max-height: 75dvh;
        max-width: none;
        padding: 2rem 1.5rem;
        justify-content: flex-start;
        animation: slideInFromBottom 0.66s ease-out;
        overflow-y: auto;
    }

    .blog-container .articles .article .article-content > * {
        max-width: 100%;
        margin-bottom: 1rem;
    }

    .blog-container .articles .article .article-content h2 {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
        line-height: 1.3;
    }

    .blog-container .articles .article .article-content .article-date {
        margin-bottom: 1.2rem;
        font-size: 1rem;
    }

    .blog-container .articles .article .article-content .article-excerpt {
        font-size: 1.1rem;
        line-height: 1.5;
        margin-bottom: 1.89rem;
        max-height: none;
        overflow: visible;
    }

    .blog-container .articles .article .article-content .read-more {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .blog-container .blog-title {
        font-size: 1.8rem;
        top: 1rem;
        left: 1rem;
        max-width: calc(100dvw - 2rem);
    }

    .blog-container .blog-description {
        font-size: 1rem;
        bottom: 1rem;
        left: 1rem;
        max-width: calc(100dvw - 2rem);
    }

    .blog-container .articles .article .article-content {
        padding: 1.5rem 1rem 4rem 1rem;
        max-height: 80dvh;
        height: fit-content;
        justify-items: center;
    }

    .blog-container .articles .article .article-content h2 {
        font-size: 1.6rem;
        margin-bottom: 0.6rem;
    }

    .blog-container .articles .article .article-content .article-date {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .blog-container .articles .article .article-content .article-excerpt {
        font-size: 1rem;
        line-height: 1.4;
        margin-bottom: 1.2rem;
    }

    .blog-container .articles .article .article-content .read-more {
        font-size: 1rem;
    }
}

/* Add mobile-specific animation */
@keyframes slideInFromBottom {
    from {
        transform: translateY(100%);
        opacity: 0;
        filter: blur(2px);
    }
    to {
        transform: translateY(0);
        opacity: 1;
        filter: blur(0);
    }
}

/* Add touch-friendly styles */
@media (max-width: 768px) {
    .blog-container .articles .article .article-content .read-more {
        min-height: 44px;
        display: flex;
        align-items: center;
        padding: 0.8rem 0;
        border-radius: 4px;
        transition: background-color 0.3s ease;
    }

    .blog-container .articles .article .article-content .read-more:hover,
    .blog-container .articles .article .article-content .read-more:focus {
        background-color: rgba(255, 255, 255, 0.1);
        border-bottom: 1px solid white;
    }

    /* Improve scroll performance on mobile */
    .blog-container .articles {
        -webkit-overflow-scrolling: touch;
    }

    /* Ensure text remains readable */
    .blog-container .articles .article .article-content {
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    }
}