:root {
    --sg-container-padding: 20px;
    --sg-container-sm-padding: 20px;
    --sg-gap: 20px;
    --sg-container-xs: 100%;
    --sg-container-sm: 536px;
    --sg-container-md: 728px;
    --sg-container-lg: 984px;
    --sg-container-xl: 100%;
    --sg-container-xxl: 1330px;

    --white: #fff;
    --acsent: #fb8d69;
    --dark-txt: #1c4a66;
    --dark-blue: #0e2838;
    --bg: #061b28;
    --black: #252525;
    --font-family: "Aleo", sans-serif;
    --second-family: "Montserrat", sans-serif;
    --third-family: "Noto Sans", sans-serif;
}

.sg-container {
    width: 100%;
    max-width: calc(100% - 140px);
    margin: 0 auto;
    padding-inline: var(--sg-container-padding);
}

.sg-inner-container {
    padding-inline: var(--sg-container-sm-padding);
}

/* breadcrums */
.breadcrums-container {
    width: max-content;
    display: flex;
    gap: 15px;
    margin: 20px auto 50px auto;
    border-radius: 10px;
    padding: 14px 24px;
    background: var(--black);
}

.breadcrums-text {
    margin: 0;
    padding: 0;
}

.separator-holder {
    display: flex;
    align-items: center;
    justify-content: center;
}

.breadcrums-text {
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 16px;
    color: var(--grey);
}

.breadcrums-link {
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 16px;
    color: var(--acsent);
    text-decoration: none;
}

@media screen and (max-width: 768px) {
    .breadcrums-text {
        font-family: var(--font-family);
        font-weight: 500;
        font-size: 16px;
        color: var(--grey);

        max-width: 200px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

@media screen and (max-width: 567px) {
    .breadcrums-container {
        margin: 15px 15px 20px 15px;
        width: calc(100% - 30px);
    }

    .separator-holder {
        flex: 0 0 15px;
    }

    .breadcrums-text {
        max-width: 100%;
    }

    .breadcrums-text-container {
        flex: 0 0 auto;
    }

    .breadcrums-text-container:last-child {
        flex: 1;
        overflow: hidden;
    }
}

/*Blog list*/
.blog__content {
    margin-bottom: 70px;
    width: 100%;
}

.articles-grid {
    max-width: 100%;
    width: 100%;
    padding: 0;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: flex-start;
    margin-bottom: 30px;
    margin-top: 30px;
}

.article-card {
    max-width: 410px;
    min-width: 315px;
    width: 100%;
    flex: 0 0 calc(33.33334% - 13.3334px);
    background: rgba(14, 40, 56, 24%);
    border-radius: 30px;
    overflow: hidden;
    padding: 20px;
    transition: background-color 0.5s ease-in-out;
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.top-post {
    margin-top: 50px;
}

.top-article-card {
    background: var(--bg);
    border-radius: 50px;
    padding: 30px;
    gap: 30px;
    text-decoration: none;
    display: flex;
    flex-direction: row;
    position: relative;
}

.top-article-card::before {
    width: 100%;
    max-width: 50%;
    height: 100%;
    content: '';
    display: block;
    background: linear-gradient(270deg, rgba(6, 27, 40, 0) 0%, rgba(0, 120, 114, 0.24) 100%);
    position: absolute;
    z-index: 0;
    left: 0;
    top: 0;
    border-radius: 50px 0 0 50px;
}

.top-article-card::after {
    width: 100%;
    max-width: 50%;
    height: 100%;
    content: '';
    display: block;
    background: linear-gradient(270deg, rgba(6, 27, 40, 0) 0%, rgba(0, 120, 114, 0.24) 100%);
    position: absolute;
    z-index: 0;
    right: 0;
    top: 0;
    border-radius: 50px 0 0 50px;
    transform: rotate(-180deg);
}

.article-card footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.top-article-card footer {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.article-card-link {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    height: 50px;
    border-radius: 14px;
    padding: 0 20px;
    background: linear-gradient(90deg, #FFC6B3 0%, #FB8D69 50%, #FFC6B3 100%);
    font-family: var(--font-family);
    font-style: normal;
    font-weight: 500;
    font-size: 17px;
    line-height: 20px;
    text-align: center;
    color: #252525;
    width: auto;
    max-width: max-content;
}

.article-card-link:hover {
    background: var(--acsent);
}

.article-card-img-wrapper {
    display: block;
    width: 100%;
    padding: 25px 25px 0;
    height: 500px;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

.article-card-img-holder {
    width: 100%;
    max-width: 410px;
    height: 100%;
    max-height: 100%;
    overflow: hidden;
    border-radius: 20px;
    margin: 0 0;
    flex: 0 0 410px;
}

.top-article-card-img-holder {
    width: 100%;
    max-width: 410px;
    height: 100%;
    max-height: 540px;
    overflow: hidden;
    border-radius: 20px;
    margin: 0 0;
    flex: 0 0 410px;
    position: relative;
    z-index: 10;
}

.article-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease-in-out;
}

.article-card-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
    gap: 0;
    height: auto;
}

.top-article-card-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    flex-grow: 1;
    gap: 0;
    height: auto;
    position: relative;
    z-index: 10;
}

.article-card-data {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 0;
    width: 100%;
    margin-bottom: 15px;
    margin-top: 20px;
}

.article-card-data time {
    font-family: var(--font-family);
    font-style: normal;
    font-weight: 500;
    font-size: 15px;
    line-height: 18px;
    color: var(--dark-txt);
}

.top-article-card .article-card-data {
    margin-top: 0;
    margin-bottom: 20px;
}

.top-article-card .article-card-data time {
    color: var(--white);
}

.comments-post {
    font-family: var(--font-family);
    font-style: normal;
    font-weight: 500;
    font-size: 17px;
    line-height: 20px;
    color: #0E2838;
    margin-left: auto;
    margin-right: 0;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.top-article-card footer .comments-post {
    margin: 0 auto 0 10px;
    color: var(--acsent);
}

.top-article-card footer .comments-post img {
    filter: brightness(0) saturate(100%) invert(59%) sepia(73%) saturate(424%) hue-rotate(324deg) brightness(99%) contrast(99%);
}

.article-card-name {
    font-family: var(--font-family);
    font-style: normal;
    font-weight: 500;
    font-size: 24px;
    line-height: 29px;
    color: #0E2838;
    padding: 0;
    margin: 0 0 10px 0;
    height: auto;
}

.top-article-card .article-card-name {
    margin: 0 0 20px 0;
    font-size: 52px;
    line-height: 62px;
    color: var(--white);
}

.article-card:hover {
    cursor: pointer;
    background-color: var(--dark-blue);
}

.article-card:hover .article-card-name,
.article-card:hover .article-card-author span {
    color: var(--acsent);
}

.article-card:hover .comments-post,
.article-card:hover .article-card-description,
.article-card:hover time {
    color: var(--white);
}

.article-card:hover .comments-post img {
    filter: brightness(0) saturate(100%) invert(99%) sepia(4%) saturate(24%) hue-rotate(352deg) brightness(111%) contrast(105%);
}

.article-card-description {
    display: flex;
    flex-flow: row;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 20px;
    font-family: var(--second-family);
    font-style: normal;
    font-weight: 500;
    font-size: 15px;
    line-height: 26px;
    color: #0E2838;
    margin-bottom: 20px;
}

.top-article-card .article-card-description {
    color: var(--white);
}
.author_container{
    display: flex;
    flex-direction: row;
    gap: 10px;
    justify-self: center;
    align-items: center;
}
.author_title{
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 17px;
    text-align: right;
}
.author_container.top .author_title{
    color: var(--white);
}
.author_container .author_title{
    color: var(--dark-blue);
}

.article-card:hover .author_container .author_title{
    color: var(--white);
}
.article-card:hover .author_container img{
   filter: invert(56%) sepia(83%) saturate(673%) hue-rotate(329deg) brightness(102%) contrast(101%);
}

.blog__empty {
    text-align: center;
    padding: 70px ;
    border-radius: 16px;
    color: #fff;
    width: 100%;
}

.blog__empty-inner {
    max-width: 600px;
    margin: 0 auto;
}

.blog__empty-icon {
    opacity: 0.9;
    margin-bottom: 20px;
}

.blog__empty-title {
    font-size: 24px;
    margin-bottom: 10px;
    color: #FB8D69;
}

.blog__empty-text {
    font-size: 16px;
    color: var(--dark-txt);
    margin-bottom: 25px;
}

.blog__empty-btn {
    display: inline-block;
    background: #FB8D69;
    color: #fff;
    padding: 10px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s;
}

.blog__empty-btn:hover {
    background: #fa7552;
}

@media screen and (max-width: 1224px) {
    .article-card-container {
        max-width: 451px;
        min-width: 315px;
    }

    .article-card-img-wrapper {
        padding: 20px 20px 0;
        height: 343px;
        margin-bottom: 15px;
    }
}

@media screen and (max-width: 1100px) {

}
@media screen and (max-width: 1024px) {
    .article-card-container {
        max-width: 354px;
        min-width: 290px;
    }

    .articles-grid {
        justify-content: space-around;
    }

    .article-card-img-wrapper {
        height: 392px;
    }

    .top-article-card {
        padding: 20px;
    }

    .top-article-card-img-holder {
        gap: 20px;
    }

    .top-post {
        margin-top: 30px;
    }

    .article-card-name,
    .article-card-price {
        font-size: 24px;
        line-height: 33px;
    }

    .article-card-info {
        gap: 15px;
    }
}

@media screen and (max-width: 900px) {
    .top-article-card-img-holder {
        flex: 0 0 40%;
    }
}

@media screen and (max-width: 768px) {
    .articles-grid {
        justify-content: center;
    }

    .article-card {
        flex: 0 0 calc(50% - 10px);
    }

    .top-article-card .article-card-data,
    .top-article-card .article-card-description {
        margin-bottom: 10px;
    }

    .top-article-card .article-card-name {
        font-size: 38px;
        line-height: 46px;
        margin-bottom: 10px;
    }

    .blog__content {
        margin-bottom: 50px;
    }
}

@media screen and (max-width: 650px) {
    .top-article-card {
        flex-flow: column;
        gap: 0;
    }

    .top-article-card-img-holder {
        flex: 0 0 100%;
        max-width: 410px;
        margin: 0 auto 10px auto;
        aspect-ratio: 1 / 1;
    }

}

@media screen and (max-width: 560px) {
    .articles-grid {
        margin-bottom: 20px;
        margin-top: 10px;
        gap: 10px;
    }

    .top-post {
        margin-top: 15px;
    }

    .top-article-card {
        padding: 10px;
        border-radius: 30px;
    }

    .sg-inner-container {
        padding: 0 15px !important;
    }

    .top-article-card .article-card-name {
        font-size: 24px;
        line-height: 29px;
    }
    .top-article-card::before{
            border-radius: 30px 0 0 30px;
    }
    .top-article-card::after{
            border-radius: 30px 0 0 30px;
    }
    .blog-title {
        font-size: 34px;
        line-height: 40px;
        margin-bottom: 15px;
    }

    .article-card {
        max-width: 100%;
        flex: 0 0 100%;
    }

    .pagination {
        margin: 20px auto 0 auto;
    }

    .blog__content {
        margin-bottom: 40px;
    }
}

@media screen and (max-width: 420px) {
    .article-card-model-icon {
        padding: 5px;
    }

    .article-card-name {
        font-size: 20px;
    }

    .article-card-img-wrapper {
        padding: 15px 15px 0;
    }
}