/*
 * Section blog hero
 * Section blog
 * Article card
 * Blog pagination
 */

/* ! Section blog hero start ! */
.blog-page {
    padding: 3rem 0 5rem;
}

.blog-page .h2-primary {
    padding-top: 0;
}
/* ! Section blog hero end ! */

/* ! Section blog start ! */
.blog > .container > nav {
    margin-bottom: 3rem;
}

.blog > .container > nav .tabs-nav {
    margin-bottom: 0;
}

.blog__list {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.blog__list .article-card {
    width: calc((100% - 60px) / 3);
}

.blog__empty {
    color: #838d99;
}

#blog__wrapper {
    transition: opacity 0.3s ease;
}

#blog__wrapper._loading {
    opacity: 0.5;
    pointer-events: none;
}
/* ! Section blog end ! */

/* ! Article card start ! */
.article-card {
    width: 100%;
    height: auto;

    display: flex;
    flex-direction: column;

    position: relative;

    border-radius: 20px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);

    transition:
        transform 0.5s ease,
        box-shadow 0.5s ease;
}

.article-card__image {
    width: 100%;
    height: 250px;
    background-color: #f6f6f6;
    border-radius: 20px;
    overflow: hidden;
}

.article-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 100% 40%;

    transition: transform 0.5s ease;
}

.article-card__info {
    box-sizing: border-box;
    padding: 20px 30px;

    display: flex;
    flex-direction: column;
    gap: 15px;
}

.article-card__cat {
    box-sizing: border-box;
    width: max-content;
    height: 30px;

    display: flex;
    justify-content: center;
    align-items: center;

    position: relative;

    color: #838d99;
    text-overflow: ellipsis;
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 135%;
    padding: 3.5px 15px 4.5px 32px;
    gap: 10px;
    border-radius: 100px;
    border: 1px solid #1ac6df;
}
.article-card__cat::before {
    content: '';
    width: 7px;
    height: 7px;
    aspect-ratio: 1 / 1;
    position: absolute;
    top: 11px;
    left: 15px;
    border-radius: 10px;
    background: #1ac6df;
}

.article-card__title {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;

    color: #2f333e;
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 135%;

    transition: color 0.3s ease;
}

.article-card__footer {
    margin-top: auto;
    padding: 10px 10px 10px 30px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    border-radius: 20px;
    background: var(--gray_background, #efefed);
    gap: 15px;
}

.article-card__date {
    display: flex;
    align-items: center;
    gap: 10px;

    color: #838d99;
    font-size: 1.2rem;
    line-height: 135%;
}

.article-card__date svg {
    flex-shrink: 0;
}
.article-card__date span {
    color: var(--green-dark-300, #2d5036);
    font-size: 16px;
    line-height: 135%;
}

@media (hover: hover) {
    .article-card:hover {
        transform: translateY(-0.5rem);
        box-shadow: 0 15px 20px rgba(0, 0, 0, 0.15);
    }
    .article-card:hover .article-card__image img {
        transform: scale(1.1);
    }
    .article-card:hover .article-card__title {
        color: #1ac6df;
    }
    .article-card:hover .btn {
        opacity: 1;
    }
    .article-card:hover .btn.btn-sm {
        padding: 1rem 2.2rem 1rem 2.1rem;
    }
    .article-card:hover .btn.btn-primary::after {
        right: -1rem;
        opacity: 0;
    }
}
/* ! Article card end ! */

/* ! Blog pagination start ! */
.blog__pagination {
    margin-top: 50px;
}

.blog__pagination ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.blog__pagination .page-numbers {
    box-sizing: border-box;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;

    display: flex;
    justify-content: center;
    align-items: center;

    border-radius: 2rem;

    color: #2f333e;
    font-size: 1.4rem;
    text-decoration: none;

    transition:
        color 0.3s ease,
        background-color 0.3s ease;
}

.blog__pagination .page-numbers.current {
    background-color: #1ac6df;
    color: #fff;
}

.blog__pagination .page-numbers.dots {
    min-width: 20px;
    padding: 0;
}

.blog__pagination .page-numbers.prev,
.blog__pagination .page-numbers.next {
    border: 1px solid #cad0dd;
    color: #1ac6df;
}

@media (hover: hover) {
    .blog__pagination a.page-numbers:hover {
        background-color: #f5f5f5;
    }

    .blog__pagination a.page-numbers.prev:hover,
    .blog__pagination a.page-numbers.next:hover {
        background-color: #1ac6df;
        color: #fff;
    }
}
/* ! Blog pagination end ! */

@media (max-width: 991px) {
    .blog__list .article-card {
        width: calc((100% - 30px) / 2);
    }

    .article-card__image {
        height: 220px;
    }
}

@media (max-width: 768px) {
    .blog-page {
        padding: 2rem 0 4rem;
    }

    .blog__list .article-card {
        width: 100%;
    }

    .blog__pagination {
        margin-top: 30px;
    }
}

@media (max-width: 576px) {
    .article-card__info {
        padding: 20px 15px;
    }
}

.category .faq {
    padding: 100px 0;
}
