﻿.horse_blog_wrapper {
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.horse_blog_container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

.horse_blog {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.horse_blog_header {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.horse_back_bar {
    width: 100%;
    min-height: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 4px;
    background-color: var(--dark);
    border-radius: 8px;
}

.horses_back_bar_link {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    padding: 0 4px;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: 4px;
}

.horses_back_bar_link_icon {
    width: 32px;
    height: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px solid transparent;
    border-radius: 50%;
}

.horses_back_bar_link:focus .horses_back_bar_link_icon,
.horses_back_bar_link:active .horses_back_bar_link_icon {
    border-color: var(--primary-orange);
    transition: 0.2s ease-out;
}

.horses_back_bar_link_text {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--light);
}

.horse_blog_title {
    width: 100%;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.2;
    text-align: left;
    color: var(--dark);
}

.horse_blog_hero_image {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

    .horse_blog_hero_image img {
        width: 100%;
        height: auto;
        display: block;
        border-radius: 8px;
    }

.horse_blog_body {
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
}

.horse_blog_article {
    width: 100%;
    display: flex;
    flex-direction: column;
    order: 1;
    gap: 16px;
    padding: 8px;
    border: 2px solid var(--grey);
    border-radius: 8px;
}

.horse_blog_article_grouped {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.horse_blog_article_title {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--dark);
}

.horse_blog_article_date {
    font-size: 12px;
    font-weight: 400;
    font-style: italic;
    line-height: 1.2;
    color: var(--dark);
}

.horse_blog_article_text {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

    .horse_blog_article_text p {
        width: 100%;
        font-size: 14px;
        font-weight: 400;
        line-height: 1.5;
        color: var(--dark);
        text-align: left;
    }

.horse_blog_article_actions {
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.horses_blog_article_link {
    width: 100%;
    max-width: 244px;
    height: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    color: var(--dark);
    background-color: var(--primary-green);
    border: 2px solid transparent;
    border-radius: 4px;
}

    .horses_blog_article_link:focus,
    .horses_blog_article_link:active {
        background-color: var(--light);
        border-color: var(--primary-green);
        transition: 0.2s ease-out;
    }

.horse_blog_archive {
    width: 100%;
    display: flex;
    flex-direction: column;
    order: 2;
    gap: 16px;
    padding: 8px;
    border: 2px solid var(--grey);
    border-radius: 8px;
}

.horse_blog_archive_title {
    width: 100%;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.2;
    text-align: left;
    color: var(--dark);
}

.horse_blog_archive_list_container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.horse_blog_archive_list {
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
}

.horse_blog_archive_list_item {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 8px;
    background-color: var(--grey);
    border-radius: 8px;
}

.horse_blog_archive_list_item_title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--dark);
}

.horse_blog_archive_list_item_date {
    font-size: 14px;
    font-weight: 400;
    font-style: italic;
    line-height: 1.2;
    color: var(--dark);
}

.horse_blog_archive_list_item_description {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
}

    .horse_blog_archive_list_item_description p {
        font-size: 14px;
        font-weight: 400;
        line-height: 1.2;
        color: var(--dark);
    }

.horse_blog_archive_list_item_button {
    width: 100%;
    height: 36px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--dark);
    background-color: var(--light);
    border: 2px solid var(--dark);
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
}

    .horse_blog_archive_list_item_button:focus,
    .horse_blog_archive_list_item_button:active {
        border-color: var(--primary-orange);
        transition: 0.2s ease-out;
    }

.horse_blog_archive_button {
    width: 100%;
    max-width: 244px;
    height: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 16px auto 0 auto;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--dark);
    background-color: var(--primary-orange);
    border: 2px solid transparent;
    border-radius: 4px;
    cursor: pointer;
}

    .horse_blog_archive_button:focus,
    .horse_blog_archive_button:active {
        background-color: var(--light);
        border-color: var(--primary-orange);
        transition: 0.2s ease-out;
    }

.horse_blog_publisher {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    order: 3;
    gap: 16px;
    padding: 8px;
    border: 2px solid var(--grey);
    border-radius: 8px;
}

.horse_blog_publisher_details {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.horse_blog_publisher_details_title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--dark);
}

.horse_blog_publisher_bio {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.horse_blog_publisher_bio_text {
    width: 100%;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    text-align: left;
    color: var(--dark);
}

@media only screen and (min-width: 680px) {
    .horse_blog_archive_list_item {
        width: calc(50% - 4px);
    }
}

@media only screen and (min-width: 1200px) {
    .horses_back_bar_link:hover .horses_back_bar_link_icon {
        border-color: var(--primary-orange);
        transition: 0.2s ease-in-out;
    }

    .horse_blog_article {
        width: calc(75% - 8px);
    }

    .horse_blog_archive {
        width: calc(75% - 8px);
        order: 3;
    }

    .horse_blog_publisher {
        width: calc(25% - 8px);
        justify-content: flex-start;
        order: 2;
    }

    .horses_blog_article_link:hover {
        background-color: var(--light);
        border-color: var(--primary-green);
        transition: 0.2s ease-in-out;
    }

    .horse_blog_archive_list_item_button:hover {
        background-color: var(--primary-orange);
        border-color: transparent;
        transition: 0.2s ease-in-out;
    }

    .horse_blog_archive_button:hover {
        background-color: var(--light);
        border-color: var(--primary-orange);
        transition: 0.2s ease-in-out;
    }
}

@media only screen and (min-width: 1365px) {
    .horse_blog_archive_list_item {
        width: calc(33.33% - 6px);
    }
}
