/* news_common.css */


/* BASE */
a,
h1,
span,
h2,
h3,
button,
p {
    margin-top: 0;
    margin-bottom: 0;
    text-decoration: none;
}

body {
    font-family: 'Onest', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #EEEDF2;
    color: #333;
    /* filter: grayscale(1); */
}

.container {
    width: 1389px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.content {
    background-color: #FFFFFF;
    border-radius: 25px;
    margin: 10px;
    position: relative;
    padding-top: 50px;
    padding-bottom: 50px;
}

/* HEADER */
.header {
    background-color: #1058CC;
    display: flex;
    margin: 10px;
    border-radius: 15px;
    align-items: center;
    padding: 10px;
}

.header .logo {
    margin-right: 15px;
}

.header .logo img {
    width: inherit;
    height: inherit;
}

.header .title {
    display: flex;
    color: #FFFFFF;
    align-items: center;
    gap: 20px;
}

.header .title h2 {
    font-weight: 500;
    font-style: Medium;
    font-size: 25px;
    line-height: 100%;
}

.header .title p {
    font-weight: 400;
    font-style: Regular;
    font-size: 12px;
    line-height: 100%;
    max-width: 242px;
}

.header .description {
    margin-left: auto;
    margin-right: auto;
    font-family: Onest;
    color: #FFFFFF;
    font-weight: 400;
    font-style: Regular;
    font-size: 24px;
    line-height: 100%;
}

.header .try_for_free {
    margin-left: auto;
    font-family: Onest;
    font-weight: 400;
    font-style: Regular;
    font-size: 16px;
    letter-spacing: 2%;
    text-align: center;
    color: #1E55A8;
    width: 250px;
    height: 55px;
    border-radius: 15px;
    display: flex;
    background-color: #FFFFFF;
    align-items: center;
    justify-content: center;
}

/* BREADCRUMPS */
.breadcrumbs {
    display: flex;
}

.breadcrumbs a {
    font-weight: 400;
    font-style: Regular;
    font-size: 16px;
    line-height: 130%;
    color: #B8B4C9;
}

.breadcrumbs a::after {
    content: " /\00a0";
}

.breadcrumbs a:last-child::after {
    content: "";
}

.breadcrumbs a:last-child {
    color: #464253;
}

.content .banner {
    background-image: url("../img/banner_card.jpg");
    padding: 40px;
    border-radius: 25px;
    background-size: cover;
    box-sizing: border-box;
}

.content .banner h2 {
    margin-bottom: 20px;
    width: 740px;
    font-weight: 400;
    font-size: 32px;
    line-height: 100%;
    letter-spacing: 0%;
    color: #FFFFFF;
}

.content .banner a {
    color: #1E55A8;
    background-color: #FFFFFF;
    font-weight: 400;
    font-size: 16px;
    line-height: 100%;
    letter-spacing: 2%;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 456px;
    height: 94px;
    border-radius: 20px;
}


.news_table {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.news_table>* {
    min-width: 0;
    box-sizing: border-box;
}

.news_card {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.news_card a {
    text-decoration: none;
    color: inherit;
    display: block;
}
.news_card a:hover h2,
.news_card a:hover h3 {
    color: #1E55A8;
    text-decoration: underline;
}
.news_card a:focus {
    outline: 2px solid #1E55A8;
    outline-offset: 4px;
    border-radius: 15px;
}

.news_card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 25px;
}

.news_card h2,
.news_card h3 {
    font-weight: 500;
    font-style: Medium;
    font-size: 24px;
    line-height: 130%;
    color: #151419;
}

.news_card .description {
    font-weight: 400;
    font-style: Regular;
    font-size: 16px;
    line-height: 130%;
    letter-spacing: 0%;
    color: #464253;
}

.news_card .date {
    font-weight: 400;
    font-style: Regular;
    font-size: 12px;
    line-height: 130%;
    letter-spacing: 0%;
    color: #B8B4C9;
}

/* MORE BUTTON */
.more_news {
    margin-bottom: 60px;
    display: flex;
    justify-content: end;
    align-items: flex-end;
    gap: 5px;
}

.more_news>* {
    flex: 0 0 auto;
    flex-grow: 0;
}

.more_news .more_news_button {
    display: inline-block;
    flex: 0 1 auto;
    padding: 24px 30px;
    border-radius: 20px;
    border-width: 1px;
    border: 1px solid #1E55A8;
    font-weight: 400;
    font-style: Regular;
    font-size: 16px;
    line-height: 100%;
    letter-spacing: 2%;
    text-align: center;
    color: #1E55A8;
    background-color: transparent;
    min-width: 0;
}

.more_news .more_news_button.next,
.more_news .more_news_button.prev {
    padding: 24px 80px;
}

.more_news .more_news_button:hover {
    background-color: #1E55A8;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.25s ease;
}

@media screen and (max-width:1900px) {
    .container {
        width: 1290px;
    }

    /* HEADER */
    .header .title {
        display: flex;
        color: #FFFFFF;
        align-items: center;
        gap: 20px;
    }

    .header .title p {
        max-width: 232px;
    }

    .header .description {
        margin-left: auto;
        margin-right: 20px;
        font-size: 18px;
        width: 360px;
    }

    .header .try_for_free {
        margin-left: 0px;
        font-family: Onest;
        width: 229px;
        font-size: 14px;
    }

    /* NEWS */
    .news_card {
        gap: 10px;
    }

    .news_card img {
        margin-bottom: 10px;
    }

    .news_card .description {
        margin-bottom: 10px;
    }
}

@media screen and (max-width:1400px) {
    .container {
        width: 748px;
    }

    .content {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    /* HEADER */
    .header {
        margin: 10px;
        padding: 8px;
    }

    .header .logo {
        margin-right: 15px;
    }

    .header .title {
        gap: 0px;
        margin-right: auto;
    }

    .header .title h2 {
        font-size: 24px;
    }

    .header .title p {
        display: none;
    }

    .header .description {
        margin-left: auto;
        margin-right: auto;
        font-size: 14px;
        width: 270px;
    }

    .header .try_for_free {
        margin-left: 0;
        font-size: 12px;
        width: 192px;
        height: 50px;
        line-height: 0;
    }

    /* BREADCRUMPS */
    .breadcrumbs {
        display: flex;
    }

    .breadcrumbs a {
        font-size: 14px;
    }

    .content .banner {
        padding: 30px;
    }

    .content .banner h2 {
        margin-bottom: 25px;
        width: 470px;
        font-size: 26px;
        line-height: 100%;
        letter-spacing: 0%;
        color: #FFFFFF;
    }

    .content .banner a {
        width: 380px;
        height: 82px;
    }

    .news_table {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px 20px;
        margin-bottom: 40px;
    }

    .news_card {
        gap: 10px;
    }

    .news_card img {
        height: 150px;
        margin-bottom: 10px;
    }

    .news_card h2,
    .news_card h3 {
        font-size: 20px;
    }

    .news_card .description {
        font-size: 14px;
        margin-bottom: 10px;
    }

    .news_card .date {
        font-size: 12px;
    }

    /* MORE BUTTON */
    .more_news {
        margin-bottom: 40px;
    }

    .more_news {
        justify-content: center;
    }

    .more_news .more_news_button {
        font-size: 16px;
    }

}

@media screen and (max-width:768px) {
    .container {
        width: 305px;
    }

    .content {
        border-radius: 15px;
        margin: 5px;
        padding-top: 20px;
        padding-bottom: 20px;
    }

    /* HEADER */
    .header {
        margin: 5px;
        border-radius: 15px;
        padding: 5px;
    }

    .header .logo {
        margin-right: 5px;
        margin-left: 5px;
        width: 28px;
        height: 28px;
    }

    .header .title h2 {
        font-size: 14px;
        font-weight: 500;
    }

    .header .description {
        display: none;
    }

    .header .try_for_free {
        font-size: 10px;
        width: 150px;
        height: 38px;
        border-radius: 15px;
    }

    /* BREADCRUMPS */
    .breadcrumbs {
        display: flex;
    }

    .breadcrumbs a {
        font-size: 12px;
    }

    .content .banner {
        background-image: url("../img/banner_card_mobile.jpg");
        box-sizing: border-box;
        height: 385px;
        padding: 15px;
    }

    .content .banner h2 {
        margin-bottom: 10px;
        width: 100%;
        font-size: 22px;
    }

    .content .banner a {
        width: 100%;
        height: 65px;
        font-size: 12px;
    }

    .news_table {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        gap: 30px;
        margin-bottom: 20px;
    }

    .news_card {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }

    .news_card img {
        height: 150px;
        margin-bottom: 10px;
    }

    .news_card h2,
    .news_card h3 {
        font-size: 18px;
    }

    .news_card .description {
        font-size: 14px;
        margin-bottom: 10px;
    }

    /* MORE BUTTON */
    .more_news {
        margin-bottom: 60px;
        display: flex;
        justify-content: center;
    }

    .more_news .more_news_button {
        border-radius: 15px;
        font-size: 12px;
        padding: 20px 20px;
        display: none;
    }

    .more_news .more_news_button.next,
    .more_news .more_news_button.prev {
        padding: 20px 40px;
    }

    .more_news .more_news_button.next,
    .more_news .more_news_button.prev,
    .more_news .more_news_button.disabled {
        display: inline-block;
    }
}