* {
    box-sizing: border-box;
}

body {
    margin: 0 auto;
    background: #fefefe;
    min-width: 1350px;
}

.main-page-cards {
    display: flex;    
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 40px;
}

.main-page-card {
    width: 325px;
    position: relative;
    transition: 0.25s linear all;
    margin: 8px 8px;
    padding: 0;
    transition: 0.25s linear all;
    flex-wrap: wrap;
}
.main-page-card img {
    width: 325px;
    margin: 0;
    padding: 0;
    border-radius: 8px;
    transition: 0.25s linear all;
}


.main-page-card:hover > img{
    filter:brightness(0.4)
}


.main-page-card-txt {
    padding: 0;
    margin: 0;
    font-family: Montserrat;
    font-style: normal;
    font-weight: 600;
    font-size: 32px;
    line-height: 36px;
    /* identical to box height, or 112% */

    text-align: center;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
/* system white */

    color: #F6F6F9;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-right: -50%;
    transform: translate(-50%, -50%)
}

.main-page-card-txt-underline {
    height: 3px;
    width: 84px;
    background: #F6F6F9;
    border-radius: 4px;

    padding: 0;
    margin: 0;
    top: 65%;
    position: absolute;
    left: 50%;
    margin-right: -50%;
    transform: translate(-50%, -50%)
}

.main-page-post-card-line {
    width: 901px;
    height: 1px;
    left: 269px;
    top: 772px;

    /* almost white */

    background: #D6D6DC;
    border-radius: 4px;
    border-color: #D6D6DC;
    margin-bottom: 40px;;
}

.whats-new {
    margin-bottom: 24px;
}
.whats-new-header {
    margin-bottom: 24px;
    font-family: Montserrat;
    font-style: normal;
    font-weight: 500;
    font-size: 28px;
    line-height: 36px;
    /* identical to box height, or 129% */

    text-align: center;
    letter-spacing: 0.05em;

    /* black */

    color: #111112;
}
.whats-new-cards {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.add-view-more {
    display: flex;
    justify-content: center;
}

.share-btn-fill {
    padding: 8px 24px;
    /* orange */
    margin: 0 24px;
    background: #FF7C33;
    border-radius: 6px;
    border: 1px solid #FF7C33; ;
    text-decoration: none;
    font-family: Montserrat;
    font-style: normal;
    font-weight: 600;
    font-size: 14px;
    line-height: 24px;
    /* identical to box height, or 171% */

    display: flex;
    align-items: center;
    text-align: center;
    letter-spacing: 0.03em;

    color: #FFFFFF;
    transition: .25s linear all;
}

.share-btn-fill:hover {
    color: #fff;
    background-color: #E6641C;
    border-color: #E6641C;
}

.share-btn-empty {
    padding: 8px 24px;
    /* orange */
    margin: 0 24px;
    background: #fff;
    border-radius: 6px;
    border: 1px solid #FF7C33; ;
    text-decoration: none;
    font-family: Montserrat;
    font-style: normal;
    font-weight: 600;
    font-size: 14px;
    line-height: 24px;
    /* identical to box height, or 171% */

    display: flex;
    align-items: center;
    text-align: center;
    letter-spacing: 0.03em;

    color: #FF7C33;
    transition: .25s linear all;
}

.share-btn-empty:hover {
    color: #FF7C33;    
    background-color: #FFDECC;
    border-color: #FFDECC;
}

.last-articles {
    width: 100%;
}

.last-articles-header {
    font-family: Montserrat;
    font-style: normal;
    font-weight: 500;
    font-size: 28px;
    line-height: 36px;
    margin-bottom: 24px;
    /* identical to box height, or 129% */

    text-align: center;
    letter-spacing: 0.05em;

    /* black */

    color: #111112;
}

.last-articles-cards {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.last-articles-card {
    width: 325px;
    height: 415px;
    position: relative;
    margin: 0 8px;
    padding: 0;
    transition: 0.25s linear all;
    overflow: hidden;
}
.last-articles-card img {
    min-width: 325px;
    min-height: 415px;
    margin: 0;
    padding: 0;
    filter:brightness(0.5);
    transition: 0.25s linear all;

    position: absolute;
    top: 50%;
    left: 50%;
    margin-right: -50%;
    transform: translate(-50%, -50%);
}

.txt-line {
    text-align: center;
    color: #F6F6F9;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-right: -50%;
    transform: translate(-50%, -50%);
}

.last-articles-card-txt {
    padding: 0;
    margin: 0 0 8px 0;
    font-family: Montserrat;
    font-style: normal;
    font-weight: bold;
    font-size: 28px;
    line-height: 36px;
    /* or 129% */

    text-align: center;
    letter-spacing: 0.05em;

    /* system white */

    color: #F6F6F9;

    text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);

    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.last-articles-card-txt-underline {
    display: block;
    height: 3px;
    width: 84px;
    background: #F6F6F9;
    border-radius: 4px;

    padding: 0;
    margin: 0 auto;
}

.last-articles-card:hover > img{
    filter:brightness(0.2)
}

