@media (min-width: 768px){
    .as-pagination span, .as-pagination a {
        line-height: 46px!important;
    }

    .error-404 .error-content .as-btn, .error-500 .error-content .as-btn{
        margin-top: 70%;
    }
}

@media (max-width: 767px){
    .as-pagination span, .as-pagination a {
        line-height: 28px!important;
    }

    .error-404 .error-content .as-btn, .error-500 .error-content .as-btn{
        margin-top: 150%;
    }

    .header-logo img{
        max-width: 100px;
    }

    .mobile-logo img{
        max-width: 120px;
    }

    .col-xs-6{
        width:50%!important;
    }
}


.page-item.active .page-link {
    background-color: #00b1ae!important;
    border-color: #00b1ae!important;
}

.language-switcher{
    display: block;
    position: relative;
    padding: 5px 0;
    line-height: 1.4;
    font-size: 16px;
    text-transform: capitalize;
    color: var(--title-color);
    padding-left: 40px;
}

.error-404{
    background-image: url(../images/error/error404.jpg)!important;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    height: 100vh;
}

.error-500{
    background-image: url(../images/error/error404.jpg)!important;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    height: 100vh;
}

ul li{
    text-align: left;
}

/* News API Loading, Error, and Empty States */
#news-loading, #article-loading {
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#news-loading .spinner-border,
#article-loading .spinner-border {
    width: 3rem;
    height: 3rem;
    border-width: 0.3rem;
}

#news-error, #article-error, #article-not-found {
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#news-empty {
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.alert {
    border-radius: 8px;
    padding: 1.5rem;
}

.alert-heading {
    margin-bottom: 0.5rem;
    font-weight: 600;
}

/* Blog Gallery Styles */
.blog-gallery {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.blog-gallery h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--title-color);
    margin-bottom: 1rem;
}

.gallery-item {
    display: block;
    overflow: hidden;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
}

.blog-headline {
    font-size: 1.25rem;
    color: var(--body-color);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.blog-description {
    line-height: 1.8;
}

.blog-description img {
    max-width: 100%;
    height: auto;
    margin: 1rem 0;
    border-radius: 8px;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .blog-gallery .col-md-4 {
        margin-bottom: 1rem;
    }
    
    #news-loading, #article-loading,
    #news-error, #article-error,
    #article-not-found, #news-empty {
        min-height: 200px;
        padding: 1rem;
    }
}

