﻿.BlogCard {
    display: flex;
    flex-flow: column nowrap;
    gap: 15px;
    border-radius: 15px;
    background-color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 48%;
    border-color: white;
    height: 455px;
    font-family: 'Montserrat';
    font-size: 12pt;
    align-items: center;
    text-decoration: none !important;
}

.BlogTitle {
    font-weight: bold;
    font-size: 12pt;
    width: 100%;
    padding: 0px 20px;
    color: black;
    font-family: 'Montserrat', monospace;
}

.BlogCard img {
    width: 100%;
    max-height: 215px;
    border-radius: 15px 15px 0px 0px;
    border-bottom: 1px solid lightgrey;
    object-fit: cover;
}

.BlogIntroduction {
    width: 100%;
    padding: 0px 20px;
    font-family: 'Montserrat', monospace;
}

    .BlogIntroduction p {
        margin: 0px;
    }

.BlogContainer {
    display: flex;
    flex-flow: row wrap;
    gap: 30px 4%;
    width:90%;
    margin:auto;
    max-width:1200px;
}

.BlogTag {
    font-size: 10pt;
    padding: 0px 15px;
    line-height: 30px;
    height: 30px;
    font-family: 'Montserrat', monospace;
    background-color: rgb(244 242 244);
    color: black;
    border: none;
    cursor: pointer;
    display: inline-block;
    text-align: center;
    border-radius: 25px;
    transition: background-color 0.3s, transform 0.2s;
    text-decoration: none !important;
}

    .BlogTag:hover, .BlogTag:focus {
        color: black;
        transform: scale(1.05);
    }

    .BlogTag:active {
        color: black;
        transform: scale(0.95);
    }

.BlogsSeeMoreBtn {
    height: 37px;
    font-family: 'Montserrat', monospace;
    color: black !important;
    border: none;
    cursor: pointer;
    display: inline-flex;
    justify-content: space-between;
    align-items: center;
    line-height: 35px;
    border-radius: 25px;
    padding: 0px 20px;
    /*transition: font-weight 0.3s, transform 0.2s;*/
    transition: width 0.3s, transform 0.2s;
    font-weight: bold;
    width: 165px;
    font-size: 10pt;
    text-decoration: none !important;
}

    .BlogsSeeMoreBtn:hover, .BlogsSeeMoreBtn:focus, .BlogsSeeMoreBtn:active {
        width: 172px;
    }



.BlogsReturnToBlogsBtn {
    height: 37px;
    font-family: 'Montserrat', monospace;
    color: black !important;
    border: none;
    cursor: pointer;
    display: inline-flex;
    justify-content: space-between;
    align-items: center;
    line-height: 35px;
    border-radius: 25px;
    /*transition: font-weight 0.3s, transform 0.2s;*/
    transition: left 0.3s, transform 0.2s;
    font-weight: bold;
    width: 135px;
    font-size: 10pt;
    text-decoration: none !important;
    left: 20px;
    position: relative;
    text-align:right;
}

    .BlogsReturnToBlogsBtn:hover, .BlogsReturnToBlogsBtn:focus, .BlogsReturnToBlogsBtn:active {
        left: 0px !important;
        width: 155px;
        padding-right:20px;
    }


.BlogPostContainer {
    max-width: 1400px;
    width: 90%;
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    margin: auto;
}

.BlogPostBody {
    width: 70%;
    display: flex;
    flex-flow: column wrap;
    gap: 20px;
}

    .BlogPostBody img {
        width: 100%;
        max-width: 500px;
        max-height: 400px;
        padding: 0px 20px;
        margin-bottom: 20px;
    }

.SideBarTitle {
    font-family: 'Montserrat', monospace;
    border: none;
    background-color: white;
    padding: 12px 15px;
    cursor: pointer;
    display: inline-block;
    text-align: left;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.2s;
    border-right: 4px solid lightgrey;
    outline: none !important;
}

    .SideBarTitle:hover {
        border-right: 2px solid #449a45;
        background-color: #449a45;
        color: white !important;
        transform: scale(1.02);
    }

    .SideBarTitle:active {
        transform: scale(0.97);
        border: none;
    }

    .SideBarTitle.active, .AboutTheTest:focus {
        outline: none;
        color: #449a45;
        border-right: 4px solid #449a45;
    }

.BlogPostSideBarContainer {
    width: 25%;
    display: flex;
    flex-flow: column nowrap;
    font-family: 'Montserrat', monospace;
    color: black;
    font-weight: 700;
    margin: 30px 0px 20px 0px;
    position: sticky;
    top: 150px;
    left: 20px;
    transition: display 0.3s, transform 0.2s;
}
.BlogPagination {
    padding: 7px 14px;
    background-color: rgb(244 242 244);
    color: black;
    cursor:pointer;
    font-family: 'Montserrat', monospace;
}
    .BlogPagination.active {
        background-color: #449a45;
        color:white;
    }

    @media only screen and (max-width: 1200px) {
        .BlogTag {
        font-size: 9pt;
        padding: 0px 10px;
    }

    .BlogIntroduction {
        font-size: 11pt;
    }
}

@media only screen and (max-width: 992px) {
    .BlogPostSideBarContainer {
        display: none !important;
    }

    .BlogPostBody {
        width: 100%;
    }
}



@media only screen and (max-width: 768px) {

    .BlogContainer {
        flex-flow: column nowrap !important;
        gap: 30px 0px;
    }

    .BlogCard {
        width: 100% !important;
    }
}
