:root {
    /*Colors*/
    --white-text: #ffffff;
    --red: #E21818;
    --red-pallete: rgba(226, 24, 24, 0.5);

    --white-bg: #fbfbfe;
    --white-bg-hover: #d1cece;
    --block-bg: #f2efef;

    --black-text: #191618;
    --grey-text: #555;
    --white-low-text: #cbcbcb;

    --coral-bg: #fa9494;
    --coral-bg-opacity: #fa9494c9;

    --spacing-small: 68px;
    --spacing-medium: 16px;
    --spacing-large: 75px;

    --font-family: "Monda", sans-serif;
    --second-family: "Montserrat", sans-serif;

    --white: #f2f1f1;
    --gold: #ffd700;
    --grey-white: #7c828d;
    --grey: #292b2f;
    --bg: #1b1c1d;
    --purple: #48467d;
    --yellow-white: #ffee93;
}

article {
    margin: 0 !important;
}

#blog-container {
    width: 100%;
}

.blog-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
    display: flex;
    flex-flow: column;
}

.blog-cards-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px 20px;
    width: 100%;
    margin: 0;
    padding: 0;
    margin: 60px 0 40px 0;
}

.blog-content h1 {
    font-family: var(--font-family);
    font-style: normal;
    font-weight: 700;
    font-size: 64px;
    line-height: 104px;
    color: #F2F1F1;
    margin-bottom: 40px;
}

.blog-card,
.related_block {
    display: block;
    width: calc(33.3334% - 14px);
    height: auto;
    padding: 0;
    box-sizing: border-box;
    position: relative;
    margin: 0;
    overflow: hidden;
    transition: transform 0.5s ease-out;
    background-color: transparent;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    border-radius: 10px;
}

.related_block {
    height: 100%;
}

.related_block a {
    margin-bottom: 0 !important;
}

.blog-card:hover .blog-photo::before {
    background: var(--gold);
}

.blog-name-card:hover,
.post-author__name:hover span {
    color: var(--gold);
}
.blog-name-card:hover{
    cursor: pointer;
}
.blog-photo {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background: none;
    text-align: center;
    color: var(--white-bg);
    z-index: 1;
    transform: scale(1);
    transition: transform 0.5s ease-out,
}

.blog-card-link {
    height: 100%;
    display: flex;
    flex-flow: column;
}




.blog-top-photo {
    border-radius: 50px;
    position: relative;
    height: 100%;
    max-height: 450px;
    display: flex;
    flex: 0 0 100%;
    max-width: 640px;
}

.blog-top-post_wrapper {
    display: flex;
    gap: 20px;
    cursor: pointer;
}

.blog-top-photo::before {
    position: absolute;
    content: '';
    display: block;
    background: var(--grey);
    height: 100%;
    width: calc(100% - 40px);
    left: 20px;
    bottom: -20px;
    z-index: -1;
    border-radius: 50px;

}

.blog-top-photo img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    max-height: 450px;
    object-position: top left;
    z-index: 1;
    border-radius: 50px;
}

.blog-photo {
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 300px;
}

.blog-photo img {
    object-fit: cover;
    object-position: top;
}

.blog-photo::before {
    position: absolute;
    content: '';
    display: block;
    background: var(--grey);
    height: 100%;
    width: calc(100% - 40px);
    left: 20px;
    bottom: -10px;
    z-index: -1;
    border-radius: 50px;
}

.views-count {
    position: absolute;
    right: 30px;
    bottom: 30px;
    width: max-content;
    height: 40px;
    border-radius: 10px;
    background: var(--grey);
    padding: 0 10px;
    display: flex;
    flex-flow: row;
    justify-content: center;
    align-items: center;
    gap: 5px;
    z-index: 2;
}

.blog-card .views-count {
    right: 20px;
    bottom: 20px;
}

.related_blogs .views-count {
    right: 20px;
    bottom: 20px;
}

.views-count span {
    font-family: var(--font-family);
    font-style: normal;
    font-weight: 700;
    font-size: 15px;
    line-height: 24px;
    color: #F2F1F1;
}

.blog-info-card {
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    flex-direction: column;
}

.blog-info-bottom {
    display: flex;
    flex-flow: row;
    gap: 20px;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 100%;
    margin-top: 5px;
}

.blog-top-info .blog-info-bottom {
    gap: 50px;
    max-width: max-content;
    margin-top: 10px;
}
.blog-top-info {
    display: flex;
    flex-flow: column;
    justify-content: center;
    align-items: flex-start;
    max-width: 640px;
    width: 100%;
}
.blog-top-info .blog-name-card.blog-top-title{
    height: auto;
    white-space: wrap;
    overflow: auto;
    text-overflow: initial;
}

.post-data {
    display: flex;
    flex-flow: row;
    justify-content: flex-start;
    gap: 10px;
    width: 100%;
    max-width: max-content;
    align-items: stretch;
}

.post-author {
    flex: 1;
    width: max-content;
    display: flex;
    flex-flow: column;
    align-items: flex-start;
    gap: 0;
}

.post-author__name span {
    font-family: var(--font-family);
    font-style: normal;
    font-weight: 700;
    font-size: 18px;
    color: #F2F1F1;
}

.post-date {
    font-family: var(--font-family);
    font-style: normal;
    font-weight: 600;
    font-size: 16px;
    line-height: 26px;
    color: var(--grey-white);
}

.post-comments {
    display: flex;
    flex-flow: column;
    align-items: center;
}

.post-comments__title {
    font-family: var(--second-family);
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 19px;
    text-align: center;
    color: #7C828D;
}

.post-comments__count {
    font-family: var(--font-family);
    font-style: normal;
    font-weight: 700;
    font-size: 20px;
    line-height: 33px;
    text-align: center;
    color: #FFD700;
    cursor: pointer;
}

.post-comments__count:hover {
    color: var(--yellow-white);
}

.blog-top-info .author-photo {
    width: 80px;
    height: 80px;
    border-radius: 14px;
    overflow: hidden;
}

.author-photo {
    width: 60px;
    height: 60px;
    overflow: hidden;
}

.author-photo img {
    object-fit: cover;
    width: 60px;
    height: 60px;
    border-radius: 14px;
}

.blog-body {
    padding: 40px 0 0 0;
    color: var(--black-text);
}

.blog-header {
    margin-bottom: 40px;
    text-align: left;
}

.blog-header h1 {
    margin-bottom: 10px;
    text-align: left;
}

.blog-header p {
    line-height: 1.5;
    color: var(--black-text);
}

.blog-photo p {
    position: absolute;
    bottom: calc(6% + 0.5em);
    left: 15px;
    font-size: 1.25em;
    font-weight: bold;
    margin: 0;
    padding: 0;
    z-index: 10;
    line-height: 1.2;
    color: var(--white-bg);
    transition: font-size 0.5s ease-out;
}

.blog-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.blog-photo-tile {
    top: 0;
    left: 0;
    height: 100%;
    max-height: 300px;
    width: 100%;
    margin-bottom: 20px;
    border-radius: 30px;
    position: relative;
}

.blog-cards {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.blog-card .author-photo img {
    border-radius: 14px;
    width: 60px;
    height: 60px;
}

.blog-card .blog-info-card {
    padding: 0 30px;
    flex-grow: 1;
}

.blog-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    margin: 0;
    padding: 0;
    border-radius: 30px;
}

.blog-card img,
.blog-image-block img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    margin: 0;
    padding: 0;
    aspect-ratio: 100 / 73;
}

.image-container img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0;
    padding: 0;
}

.related_blogs {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0;
}

.related_blogs a {
    width: 100%;
    display: flex;
    flex-flow: column;
    position: relative;
    height: fit-content;
    margin-bottom: 20px;
}

.related_blogs img {
    width: 100%;
    object-fit: cover;
    max-height: 300px;
}

.related_blogs .blog-info-bottom {
    padding: 0 20px;
}

.related_block_title {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: start;
    align-items: center;
    padding: 0 20px;
}

.related_block_title h3 {}

.related_block_title p {
    font-family: var(--second-family);
    font-style: normal;
    font-weight: 400;
    font-size: 17px;
    line-height: 28px;
    color: var(--grey-white);
    margin-bottom: 20px;
    text-align: left;
    width: 100%;
}


@media (max-width: 1024px) {
    .blog-content h1 {
        margin-bottom: 30px;
    }

    .blog-top-title {
        font-size: 28px !important;
        line-height: 46px !important;
    }
    .blog-top-photo{
        flex: 0 0 auto;
        max-width: 40%;
    }
    .blog-photo {
        max-height: 225px;
    }
    .blog-top-info{
        flex: 1;
    }
    .blog-card img,
    .blog-image-block img {
        height: 100%;
        aspect-ratio: 100 / 75;
        max-height: 225px;
    }

    .blog-photo::before {
        bottom: -20px;
    }

    .blog-card .blog-info-card {
        padding: 0 10px;
    }

    .blog-name-card {
        font-size: 20px;
        line-height: 33px;
    }

    .blog-description-card {
        font-size: 16px;
    }


    .related_block_title,
    .related_blogs .blog-info-bottom {
        padding: 0 10px;
    }
}

@media (max-width: 900px) {
    .blog-card {
        width: 100%;
        flex: 0 0 calc(50% - 10px);
        height: auto;
    }

    .blog-card img,
    .blog-image-block img {
        height: 100%;
        aspect-ratio: 100 / 75;
    }

    .blog-cards-container {
        margin: 50px 0px 0px 0px;
    }

    .blog-gallery {
        gap: 10px;
    }

    .related_blogs a {
        width: 45%;
    }

    .related_blogs p {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .blog-content h1 {
        font-size: 54px;
        line-height: 88px;
        margin-bottom: 20px;
    }

    .blog-body {
        padding-top: 20px;
    }
    .blog-top-post_wrapper{
        flex-flow: column;
        height: 100%;
    }
    .blog-top-post a,.blog-top-info{
        max-width: 100%;
    }
    .blog-top-title {
        font-size: 44px !important;
        line-height: 72px !important;
    }

    .blog-top-photo {
        margin-bottom: 30px;
    }

    .blog-photo {
        max-height: 200px;
    }

    .blog-top-post {
        margin: 0 auto !important;
        display: flex;
        justify-content: center;
    }

    .blog-top-post a {
        flex-flow: column !important;
        width: 100%;
        max-width: 640px;
        height: 100%;
        margin: 0 auto;
    }

    .related_blogs a {
        width: 70%;
    }
}

@media (max-width: 650px) {
    .blog-content h1 {
        font-size: 32px;
        line-height: 52px;
    }

    .blog-photo {
        max-height: 500px;
    }

    .blog-top-title {
        font-size: 24px !important;
        line-height: 39px !important;
    }

    .blog-cards-container {
        gap: 30px;
    }

    .blog-card {
        flex: 0 0 100%;
    }


    .blog-photo-tile {
        max-height: 500px;
    }
    .blog-photo::before {
        bottom: -10px;
    }
}

@media (max-width: 560px) {
    .blog-top-photo {
        max-height: 350px;
        margin-bottom: 20px;
    }

    .blog-top-photo img {
        max-height: 350px;
    }

    .blog-photo::before {
        bottom: -10px;
    }

    .blog-top-info .blog-info-bottom {
        gap: 20px;
        max-width: 100%;
    }

    .blog-top-info .author-photo {
        width: 60px;
        height: 60px;
    }

    .blog-name-card,
    .blog-description-card {
        margin-bottom: 10px !important;
    }

    .related_block_title,
    .related_blogs .blog-info-bottom {
        padding: 0;
    }
}

@media (max-width: 375px) {
    .blog-card {}

    .related_blogs a {
        width: 100%;
    }
}